/* ===== STYLES GÉNÉRAUX ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    color: #ffffff;
}

/* ===== STYLES DE LA PAGE DE CONNEXION ===== */
.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: #b0b0b0;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.5);
}

.form-group input::placeholder {
    color: #888;
}

.form-help {
    font-size: 0.85em;
    color: #888;
    margin-top: 5px;
    display: block;
}

.login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.error-message {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.success-message {
    background: rgba(78, 205, 196, 0.2);
    border: 1px solid rgba(78, 205, 196, 0.5);
    color: #4ecdc4;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.register-link p {
    color: #b0b0b0;
    margin-bottom: 10px;
}

.register-link a {
    color: #4ecdc4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register-link a:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

/* ===== STYLES DE LA PAGE PRINCIPALE ===== */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2em;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #e0e0e0;
}

.user-role {
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-badge.admin {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.role-badge.basic {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 205, 196, 0.3);
}

/* ===== STYLES POUR L'INTERFACE D'ADMINISTRATION ===== */
.admin-panel {
    display: grid;
    grid-template-columns: 300px 1fr 1fr;
    gap: 30px;
    margin: 10px 20px 0 20px;
}

.players-section {
    min-width: 280px;
}

.planning-section {
    flex: 1;
}

.responses-section {
    min-width: 300px;
}

.admin-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.admin-section h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.add-player-form {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.add-player-form .form-input {
    flex: 1;
}

.add-player-form .admin-btn {
    padding: 12px 15px;
    min-width: 40px;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9em;
    width: 100%;
}

.form-input::placeholder {
    color: #b0b0b0;
}

.form-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

/* Styles pour les inputs de date et heure */
.form-input[type="date"],
.form-input[type="time"],
.form-input[type="number"] {
    color-scheme: dark;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-select {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.9em;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8px;
}

.form-select option:hover {
    background: #4ecdc4;
    color: #1a1a2e;
}

.admin-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.admin-btn.danger {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.admin-btn.danger:hover {
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.players-list h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.players-table th,
.players-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.players-table th {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    font-weight: 600;
}

.players-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

.status-badge.inactive {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.planning-controls {
    margin-bottom: 25px;
}

.session-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.session-controls .form-select {
    flex: 1;
    min-width: 250px;
}

.session-controls .admin-btn {
    white-space: nowrap;
    padding: 10px 15px;
    font-size: 0.85em;
}

.session-stats {
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card.yes {
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(78, 205, 196, 0.1);
}

.stat-card.no {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.1);
}

.stat-card.maybe {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.1);
}

.stat-card.proposed {
    border-color: rgba(108, 117, 125, 0.5);
    background: rgba(108, 117, 125, 0.1);
}

.stat-card.slots {
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(78, 205, 196, 0.1);
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8em;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.session-responses h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.responses-grid {
    display: grid;
    gap: 10px;
}

.responses-section .response-card {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    padding: 12px;
    font-size: 0.9em;
}

.responses-section .player-info strong {
    font-size: 0.95em;
}

.responses-section .status-select {
    min-width: 100px;
    font-size: 0.85em;
}

.responses-section .notes-input {
    min-width: 120px;
    font-size: 0.85em;
}

.response-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    min-height: 40px;
}

.response-card.yes {
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(78, 205, 196, 0.1);
}

.response-card.no {
    border-color: rgba(255, 107, 107, 0.5);
    background: rgba(255, 107, 107, 0.1);
}

.response-card.maybe {
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 193, 7, 0.1);
}

.response-card.proposed {
    border-color: rgba(108, 117, 125, 0.5);
    background: rgba(108, 117, 125, 0.1);
}

.player-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.sort-controls {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sort-btn {
    background: rgba(78, 205, 196, 0.2);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 3px;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sort-btn:hover:not(:disabled) {
    background: rgba(78, 205, 196, 0.4);
    border-color: rgba(78, 205, 196, 0.6);
}

.sort-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.priority-select {
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.8em;
    cursor: pointer;
}

.priority-select:focus {
    outline: none;
    border-color: #4ecdc4;
}

.priority-select option {
    background: #1a1a2e;
    color: #ffffff;
}

.player-priority {
    font-size: 0.75em;
    color: #b0b0b0;
    margin-top: 2px;
}

.player-info strong {
    color: #ffffff;
    font-size: 1em;
}

.player-info small {
    color: #b0b0b0;
    font-size: 0.8em;
}

.status-select {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.8em;
    cursor: pointer;
    min-width: 90px;
}

.status-select:focus {
    outline: none;
    border-color: #4ecdc4;
}

.status-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 8px;
}

.status-select option:hover {
    background: #4ecdc4;
    color: #1a1a2e;
}

.notes-input {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.8em;
    min-width: 110px;
}

.notes-input::placeholder {
    color: #b0b0b0;
}

.notes-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

/* ===== STYLES POUR LES JOUEURS DISPONIBLES ===== */
.available-players {
    margin-top: 30px;
}

.available-players h4 {
    color: #4ecdc4;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.available-players-grid {
    display: grid;
    gap: 10px;
}

.available-player-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.available-player-card .player-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.player-name {
    font-weight: 600;
    color: #ffffff;
}

.player-actions {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.action-btn.proposed {
    background: rgba(108, 117, 125, 0.3);
    color: #b0b0b0;
}

.action-btn.proposed:hover {
    background: rgba(108, 117, 125, 0.5);
}

.action-btn.yes {
    background: rgba(78, 205, 196, 0.3);
    color: #4ecdc4;
}

.action-btn.yes:hover {
    background: rgba(78, 205, 196, 0.5);
}

.action-btn.no {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.action-btn.no:hover {
    background: rgba(255, 107, 107, 0.5);
}

.action-btn.maybe {
    background: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.action-btn.maybe:hover {
    background: rgba(255, 193, 7, 0.5);
}

.action-btn.remove {
    background: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    width: 18px;
    height: 18px;
    padding: 0;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    min-height: 18px;
    flex-shrink: 0;
}

.action-btn.remove:hover {
    background: rgba(255, 107, 107, 0.5);
}

.response-actions {
    display: flex;
    justify-content: center;
}

/* ===== STYLES POUR LE MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 15px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #4ecdc4;
}

.close {
    color: #b0b0b0;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.admin-btn.secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
}

.admin-btn.secondary:hover {
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.logout-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.main-content {
    padding: 20px 0;
    width: 100%;
    margin: 0;
}

.welcome-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-message h2 {
    color: #4ecdc4;
    margin-bottom: 10px;
}

.welcome-message p {
    color: #b0b0b0;
    line-height: 1.6;
}

.placeholder-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-content h3 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.placeholder-content p {
    color: #b0b0b0;
    font-size: 1.1em;
    line-height: 1.6;
}

.coming-soon {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Styles pour les utilisateurs BASIC (même que publique) */
.planning-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.session-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.session-date {
    color: #4ecdc4;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
}

.session-time {
    color: #b0b0b0;
    font-size: 1em;
    margin-bottom: 15px;
}

.players-section {
    margin-top: 15px;
}

.players-title {
    color: #4ecdc4;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.players-list {
    color: #ffffff;
    font-size: 1em;
    line-height: 1.6;
}

.no-players {
    color: #b0b0b0;
    font-style: italic;
}

.no-sessions {
    text-align: center;
    color: #b0b0b0;
    font-size: 1.2em;
    margin-top: 50px;
}

.session-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.9em;
}

.stat-value {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 1.1em;
}

/* ===== LAYOUT POUR LA PAGE DE CONNEXION ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-content {
        padding: 10px 0;
    }
    
    .admin-panel {
        margin: 5px 10px 0 10px;
    }
    
    .admin-panel {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .players-section {
        min-width: auto;
    }
    
    .responses-section {
        min-width: auto;
    }
    
    .session-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .responses-section .response-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .response-card {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .available-player-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .player-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .login-container {
        margin: 20px;
        padding: 30px;
    }
    
    .login-header h1 {
        font-size: 2em;
    }
}

/* ===== STYLES POUR LE BOUTON DE L'ŒIL ===== */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.eye-icon {
    display: inline-block;
    transition: all 0.3s ease;
}
