/* Variables de couleur */
:root {
    --primary: #D86C22;
    --primary-dark: #b0510e;
    --primary-light: rgba(216, 108, 34, 0.1);
    --secondary: #6c757d;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-800: #343a40;
}

/* Styles de base */
html:not(h1, h2, h3, h4, h5, h6) {
    font-family: 'Comfortaa', sans-serif;
}

body {
    font-family: 'Comfortaa', sans-serif;
}

/* Container du calendrier */
#calendar {
    margin: 0 auto;
    width: 100%;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /*overflow: hidden;*/
}

/* En-tête du calendrier */
.fc-header-toolbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1.5rem !important;
    margin-bottom: 0 !important;
}

.fc-toolbar-title {
    color: var(--white) !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    text-transform: capitalize;
}

/* Boutons de navigation */
.fc-button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
    text-transform: capitalize !important;
    transition: all 0.3s ease !important;
}

.fc-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px);
}

.fc-button-active {
    background: var(--white) !important;
    color: var(--primary) !important;
}

/* Grille du calendrier */
.fc-scrollgrid {
    border: none !important;
}

.fc-scrollgrid td {
    border-color: var(--gray-200) !important;
}

/* En-têtes des colonnes */
.fc-col-header-cell {
    background-color: var(--gray-100) !important;
    border-color: var(--gray-200) !important;
    padding: 1rem 0 !important;
}

.fc-col-header-cell-cushion {
    color: var(--gray-800) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.875rem;
}

/* Cellules des jours */
.fc-daygrid-day {
    transition: background-color 0.2s ease;
}

.fc-daygrid-day-frame {
    min-height: 120px !important;
    padding: 8px !important;
}

.fc-day-today {
    background-color: var(--primary-light) !important;
}

.fc-daygrid-day-number {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    padding: 4px 8px !important;
}

/* Événements */
.fc-daygrid-event-harness {
    margin: 3px 0 !important;
}

.fc-v-event {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 4px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.fc-v-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.fc-v-event .fc-event-main {
    padding: 6px 8px !important;
}

.fc-event-title {
    color: var(--white) !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
}

.fc-event-time {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.75rem !important;
}

/* Lien "plus d'événements" */
.fc-daygrid-more-link {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
    border-radius: 4px;
    padding: 2px 6px !important;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 2px 4px !important;
}

/* Popover pour plus d'événements */
.fc-more-popover {
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.fc-popover-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: var(--white) !important;
    padding: 12px !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem !important;
    }

    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .fc-daygrid-day-frame {
        min-height: 80px !important;
    }
}

/* Scrollbar personnalisée */
.fc-scroller::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Styles pour les listes défilantes */
.scrollable-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #f8f9fa;
}

.scrollable-list::-webkit-scrollbar {
    width: 6px;
}

.scrollable-list::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.scrollable-list::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border-radius: 3px;
}

#eventDailySchedule, #participantsList {
    max-height: 200px;
    overflow-y: auto;
}

/* Styles pour les actions des participants */
.participant-actions {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.list-group-item:hover .participant-actions {
    opacity: 1;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Styles pour les modals */
.modal-header.bg-primary {
    background: linear-gradient(135deg, #D86C22ff 0%, #b0510e 100%);
}

.form-label i {
    color: #6c757d;
}

.form-control:focus, .form-select:focus {
    border-color: #D86C22ff;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.alert-info {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #b0510e;
/*    primary hover*/
}

.modal-footer.bg-light {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.invalid-feedback {
    font-size: 0.875em;
    margin-top: 0.25rem;
}

/* Animation pour le message d'erreur */
.invalid-feedback {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.form-control.is-invalid + .invalid-feedback,
.form-select.is-invalid + .invalid-feedback {
    opacity: 1;
    transform: translateY(0);
}

/* Boutons de filtre */
.btn-filter {
    border: 1px solid var(--bs-border-color) !important;
    background-color: var(--bs-gray-200) !important;
    color: #5a6a85 !important;
    height: 40px;
    transition: background-color 0.3s;
}

.btn-filter:hover {
    background-color: var(--bs-gray-300) !important;
}

/* Button styles for previous and next navigation */
.btn-nav {
    border: 1px solid var(--bs-border-color) !important;
    background-color: var(--bs-gray-200) !important;
    color: #5a6a85 !important;
    height: 40px;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.btn-nav:hover {
    background-color: var(--bs-gray-300) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    transition: background-color 0.2s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item:active {
    background-color: #e9ecef;
}

.dropdown-divider {
    margin: 0;
    border-top: 1px solid #e9ecef;
}

.text-danger {
    color: #dc3545;
}

.text-primary {
    color: var(--theme-primary);
}

.offcanvas {
    max-width: 300px;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        width: 100%;
    }
    .navbar-nav .nav-item {
        margin-bottom: 10px;
        width: 90%;
    }
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
}

@media  (max-width: 564px) {
    .navbar.navbar-expand-lg{
        padding: 8px!important;
    }

    .container-fluid.py-4.h-100 > .card{
        height: 100%!important;
    }
}

*::-webkit-scrollbar {
    width: 2px !important;
    background-color: transparent !important;
    border: none;
}

*::-webkit-scrollbar-thumb {
    background-color: #ffffff !important;
    border-radius: 1px !important;
    border: none;
}

/* Styles pour les sections d'information */
.modal-body .mb-4 {
    background: var(--gray-100);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.modal-body .mb-4:hover {
    background: var(--gray-200);
}

.modal-body .mb-4 .ti {
    font-size: 1.25rem;
}

.modal-body .mb-4 h5 {
    color: var(--gray-800);
    font-size: 1rem;
}

.modal-body .mb-4 p,
.modal-body .mb-4 div#eventDailySchedule {
    color: var(--gray-800);
    line-height: 1.5;
}

/* Animation pour les icônes */
.modal-body .mb-4:hover .ti {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Icônes Tabler */
.ti {
    font-size: 1.1em;
    vertical-align: -0.125em;
}

.btn .ti {
    margin-right: 0.25rem;
}

/* Amélioration des badges */
.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

.badge.bg-light {
    color: var(--primary);
    border: 1px solid var(--primary-light);
}
