
/* Styles pour les cards de sélection */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.selection-card {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
    flex: 1 1 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
}

.dark .selection-card {
    background: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.selection-card:hover {
    border-color: #DDB36D;
    background: #fefefe;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(221, 179, 109, 0.2);
}

.dark .selection-card:hover {
    border-color: #B8932E;
    background: #374151;
    box-shadow: 0 2px 8px rgba(184, 147, 46, 0.3);
}

.selection-card.selected {
    border-color: #DDB36D;
    background: #DDB36D;
    color: white;
}

.dark .selection-card.selected {
    border-color: #B8932E;
    background: #B8932E;
    color: #f9fafb;
}

.selection-card.selected h6 {
    color: white;
}

.dark .selection-card.selected h6 {
    color: #f9fafb;
}

.selection-card.selected small {
    color: rgba(255, 255, 255, 0.9);
}

.dark .selection-card.selected small {
    color: rgba(249, 250, 251, 0.9);
}

.selection-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #e9ecef;
}

.dark .selection-card.disabled {
    background: #111827;
    color: #6b7280;
}

.selection-card .card-content h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.selection-card .card-content small {
    font-size: 12px;
    line-height: 1.2;
}

/* Styles pour le switch des divisions avec labels */
.division-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch-label-left,
.switch-label-right {
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.dark .switch-label-left,
.dark .switch-label-right {
    color: #9ca3af;
}

.form-switch {
    padding-left: 0;
    margin: 0;
}

.form-switch .form-check-input {
    width: 2rem;
    margin-left: 0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 1rem;
    transition: all 0.2s ease;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 1.0%29'/%3e%3c/svg%3e");
    background-color: #DDB36D;
    border-color: #DDB36D;
}

.dark .form-switch .form-check-input:checked {
    background-color: #B8932E;
    border-color: #B8932E;
}

.form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    border-color: #DDB36D;
    box-shadow: 0 0 0 0.2rem rgba(221, 179, 109, 0.25);
}

.dark .form-switch .form-check-input:focus {
    border-color: #B8932E;
    box-shadow: 0 0 0 0.2rem rgba(184, 147, 46, 0.25);
}

.form-switch .form-check-input:checked:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 1.0%29'/%3e%3c/svg%3e");
}

/* Styles pour les badges de statut de session */
.session-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.session-status-badge i {
    margin-right: 5px;
}

.status-full {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.dark .status-full {
    background-color: #7f1d1d;
    color: #fca5a5;
    border-color: #991b1b;
}

.status-limited {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
}

.dark .status-limited {
    background-color: #78350f;
    color: #fcd34d;
    border-color: #92400e;
}

/* Styles pour les commentaires de session */
.session-comment {
    background-color: #e3f2fd;
    border-left: 3px solid #2196f3;
    padding: 8px 10px;
    border-radius: 4px;
    margin-top: 8px;
    transition: all 0.2s ease;
    text-align: left;
}

.dark .session-comment {
    background-color: #1e3a8a;
    border-left-color: #3b82f6;
}

.session-comment small {
    color: #1565c0 !important;
    line-height: 1.5;
    display: block;
}

.dark .session-comment small {
    color: #93c5fd !important;
}

.session-comment .fas {
    margin-right: 5px;
}

/* Responsive design pour les cards */
@media (max-width: 768px) {
    .selection-card {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .cards-container {
        flex-direction: column;
    }
    
    .selection-card {
        flex: 1 1 100%;
        max-width: 100%;
        text-align: left;
    }

    .division-switch-container {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }
    
    .switch-label-left,
    .switch-label-right {
        font-size: 12px;
    }
}

/* Styles existants pour la compatibilité */
body { 
    padding-bottom: 60px; 
    background-color: white;
    transition: background-color 0.2s ease;
}

.dark body {
    background-color: #111827;
    color: #f9fafb;
}

.section-title { 
    background-color: #DDB36D; 
    color: white; 
    padding: 10px; 
    margin-bottom: 20px; 
    border-radius: 5px; 
    transition: background-color 0.2s ease;
}

.dark .section-title {
    background-color: #B8932E;
    color: #f9fafb;
}

.archer-entry { 
    background-color: #f8f9fa; 
    border: 1px solid #dee2e6; 
    border-radius: 5px; 
    padding: 15px; 
    margin-bottom: 20px; 
    transition: all 0.2s ease;
}

.dark .archer-entry {
    background-color: #1f2937;
    border-color: #374151;
    color: #f9fafb;
}

.archer-header { 
    background-color: #4a80be; 
    color: white; 
    padding: 10px; 
    margin: -15px -15px 15px -15px; 
    border-top-left-radius: 5px; 
    border-top-right-radius: 5px; 
    transition: background-color 0.2s ease;
}

.dark .archer-header {
    background-color: #1e40af;
    color: #f3f4f6;
}

.btn-primary, .btn-success { 
    background-color: #DDB36D; 
    border-color: #DDB36D; 
    transition: all 0.2s ease;
}

.dark .btn-primary, .dark .btn-success {
    background-color: #B8932E;
    border-color: #B8932E;
}

.btn-primary:hover, .btn-primary:active, .btn-success:hover, .btn-success:active { 
    background-color: #C9A159; 
    border-color: #C9A159; 
}

.dark .btn-primary:hover, .dark .btn-primary:active, 
.dark .btn-success:hover, .dark .btn-success:active {
    background-color: #A67C26;
    border-color: #A67C26;
}

.btn-danger { 
    background-color: #3a6491; 
    border-color: #3a6491; 
    transition: all 0.2s ease;
}

.dark .btn-danger {
    background-color: #1e40af;
    border-color: #1e40af;
}

.btn-danger:hover, .btn-danger:active { 
    background-color: #2c4d6e; 
    border-color: #2c4d6e; 
}

.dark .btn-danger:hover, .dark .btn-danger:active {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.is-invalid { 
    border-color: #dc3545; 
}

.dark .is-invalid {
    border-color: #ef4444;
}

.invalid-feedback { 
    display: none; 
    color: #dc3545; 
    margin-top: .25rem; 
}

.dark .invalid-feedback {
    color: #ef4444;
}

.session-header { 
    background-color: #4a80be !important; 
}

.dark .session-header {
    background-color: #1e40af !important;
}