/* ==================== STYLES DE BASE ==================== */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Gotham", sans-serif;
}

@font-face {
    font-family: "Gotham";
    src: url("./fonts/Gotham-Book.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Gotham";
    src: url("./fonts/Gotham-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}

body {
    background: #1a1a1a;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
}

/* ==================== EN-TÊTE ET TITRE ==================== */
h1 {
    color: #00ffcc;
    margin-bottom: 1rem;
    font-size: 2rem;
    text-shadow: 0 0 10px #00ffcc55;
    word-wrap: break-word;
}

/* ==================== CALENDRIER ==================== */
#calendarContainer {
    background: linear-gradient(160deg, #222, #333);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px #00ffcc33;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.calendar-header h2 {
    color: #00ffcc;
    margin: 0;
    font-size: 1.5rem;
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.calendar-nav {
    background: #2a2a2a;
    color: #00ffcc;
    border: 1px solid #555;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.calendar-nav:hover {
    background: #333;
    border-color: #00ffcc;
    transform: scale(1.1);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #00ffcc;
}

.calendar-weekdays div {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

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

.calendar-day {
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 0.3rem;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calendar-day:hover {
    background: #333;
    border-color: #00ffcc;
    transform: translateY(-2px);
}

.calendar-day.today {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
    cursor: default;
}

.calendar-day.empty:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
}

.day-number {
    font-size: 1rem;
    font-weight: bold;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-icon {
    color: #00ffcc;
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 3px;
}

.day-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.7rem;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    padding: 2px 5px;
    border-radius: 10px;
    margin-top: auto;
}

.day-hours {
    font-weight: bold;
}

/* Couleurs des heures dans le calendrier */
.day-hours.type-normal {
    color: #4caf50 !important;
}

.day-hours.type-overtime {
    color: #ff9800 !important;
}

.day-hours.type-night {
    color: #9c27b0 !important;
}

.day-hours.type-weekend {
    color: #f32121 !important;
}

.day-hours.type-leave {
    color: #ffcc00 !important;
    font-size: 0.65rem;
}

/* Couleurs de fond des indicateurs selon le type */
.calendar-day.type-normal .day-indicator {
    background-color: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.calendar-day.type-overtime .day-indicator {
    background-color: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.calendar-day.type-night .day-indicator {
    background-color: rgba(156, 39, 176, 0.15);
    border: 1px solid rgba(156, 39, 176, 0.4);
}

.calendar-day.type-weekend .day-indicator {
    background-color: rgba(243, 33, 33, 0.15);
    border: 1px solid rgba(243, 33, 33, 0.4);
}

.calendar-day.type-leave .day-indicator {
    background-color: rgba(255, 204, 0, 0.2) !important;
    border: 1px solid rgba(255, 204, 0, 0.4) !important;
}

/* Couleurs de fond des jours selon le type */
.calendar-day.type-normal {
    background-color: rgba(76, 175, 80, 0.05);
}

.calendar-day.type-overtime {
    background-color: rgba(255, 152, 0, 0.05);
}

.calendar-day.type-night {
    background-color: rgba(156, 39, 176, 0.05);
}

.calendar-day.type-weekend {
    background-color: rgba(243, 33, 33, 0.05);
}

.calendar-day.type-leave {
    background-color: rgba(255, 204, 0, 0.1) !important;
}

/* ==================== RÉSUMÉ DES HEURES ==================== */
.hours-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.summary-item {
    background: linear-gradient(160deg, #222, #333);
    border: 1px solid #555;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 0;
    overflow: hidden;
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ffcc;
}

/* ==================== LISTE DES ENTRÉES ==================== */
.work-entries {
    background: linear-gradient(160deg, #222, #333);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 5rem;
    box-shadow: 0 0 15px #00ffcc33;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.work-entries h3 {
    color: #00ffcc;
    margin-bottom: 1rem;
    text-align: left;
    font-size: 1.2rem;
}

.entries-list {
    max-height: 300px;
    overflow-y: auto;
}

.entry-item {
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
}

.entry-item:hover {
    background: #333;
    border-color: #00ffcc;
}

.entry-date,
.entry-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #aaa;
    flex-wrap: wrap;
}

.entry-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry-hours {
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.entry-type {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Couleurs des badges dans les entrées */
.type-normal {
    color: #4caf50 !important;
    background: rgba(76, 175, 80, 0.15) !important;
}

.type-overtime {
    color: #ff9800 !important;
    background: rgba(255, 152, 0, 0.15) !important;
}

.type-night {
    color: #9c27b0 !important;
    background: rgba(153, 102, 255, 0.15) !important;
}

.type-weekend {
    color: #f32121 !important;
    background: rgba(255, 51, 102, 0.15) !important;
}

.type-leave {
    color: #ffcc00 !important;
    background: rgba(255, 204, 0, 0.15) !important;
}

.entry-notes {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 0.85rem;
    font-style: italic;
    word-wrap: break-word;
}

.entry-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.entry-edit,
.entry-delete {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    opacity: 0.6;
    transition:
        opacity 0.3s,
        color 0.3s;
    padding: 5px;
    font-size: 0.9rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.entry-edit:hover {
    opacity: 1;
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
}

.entry-delete:hover {
    opacity: 1;
    color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.no-entries {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 2rem;
}

/* ==================== MODALS ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: linear-gradient(160deg, #222, #333);
    border: 2px solid #00ffcc;
    border-radius: 15px;
    padding: 1.5rem;
    width: 95vw;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px #00ffcc99;
    margin: auto;
    box-sizing: border-box;
    animation: fadeInScale 0.3s ease-out forwards;
}

/* Modal de taille réduite */
.small-modal {
    max-width: 415px !important;
    padding: 1.2rem !important;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    color: #00ffcc;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ==================== FORMULAIRES ==================== */
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #00ffcc;
}

textarea.form-input {
    resize: vertical;
    min-height: 60px;
}

input[type="file"].form-input {
    padding: 0.5rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00ffcc;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.form-help {
    display: block;
    color: #777;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.form-actions {
    display: flex;
    justify-content: space-between; /* Changé de flex-end à space-between */
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Style spécifique pour le modal d'information */
#infoModal .form-actions {
    display: flex;
    justify-content: space-between; /* Modifier à gauche, OK à droite */
    gap: 1rem;
    margin-top: 1.5rem;
}

#infoModal .btn-cancel {
    background: #555;
    color: #fff;
    order: 2; /* OK à droite */
}

#infoModal .btn-save {
    background: #00ffcc;
    color: #1a1a1a;
    order: 1; /* Modifier à gauche */
}

.btn-cancel,
.btn-save {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel {
    background: #555;
    color: #fff;
}

.btn-cancel:hover {
    background: #666;
}

.btn-save {
    background: #00ffcc;
    color: #1a1a1a;
}

.btn-save:hover {
    background: #00ccaa;
}

#infoModal .btn-delete {
    background: #ff5555;
    color: white;
    order: 1; /* Supprimer à gauche */
}

#infoModal .btn-delete:hover {
    background: #ff3333;
}

#infoModal .btn-save {
    background: #00ffcc;
    color: #1a1a1a;
    order: 2; /* Modifier au milieu */
}

#infoModal .btn-cancel {
    background: #555;
    color: #fff;
    order: 3; /* OK à droite */
}

/* Ajustement de l'espacement pour 3 boutons */
#infoModal .form-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

#infoModal .btn-delete,
#infoModal .btn-save,
#infoModal .btn-cancel {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
}

/* Correction de l'alignement des icônes dans les selects */
select.form-input {
    padding-right: 40px !important;
    background: #2a2a2a
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'%3E%3Cpath fill='%23ffffff' d='M297.4 470.6C309.9 483.1 330.2 483.1 342.7 470.6L534.7 278.6C547.2 266.1 547.2 245.8 534.7 233.3C522.2 220.8 501.9 220.8 489.4 233.3L320 402.7L150.6 233.4C138.1 220.9 117.8 220.9 105.3 233.4C92.8 245.9 92.8 266.2 105.3 278.7L297.3 470.7z'/%3E%3C/svg%3E")
        no-repeat right 15px center/12px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ajouter ces styles pour les champs désactivés */
.form-input:disabled {
    background-color: #333 !important;
    color: #777 !important;
    cursor: not-allowed !important;
    border-color: #444 !important;
    opacity: 0.7;
}

.form-input:disabled::placeholder {
    color: #666 !important;
}

/* Styles spécifiques pour les champs d'heure désactivés */
input[type="time"]:disabled,
input[type="date"]:disabled {
    background-color: #333 !important;
    color: #777 !important;
}

/* Pour les cases à cocher désactivées */
input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

input[type="checkbox"]:disabled + label {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ==================== CORRECTIONS iOS ==================== */
@supports (-webkit-touch-callout: none) {
    /* Styles spécifiques pour iOS */
    .form-input[type="date"],
    .form-input[type="time"],
    .form-input[type="datetime-local"] {
        min-height: 44px; /* Taille minimale pour les éléments cliquables sur iOS */
        font-size: 16px; /* Empêche le zoom automatique sur iOS */
        -webkit-appearance: none;
        appearance: none;
    }

    /* Correction pour les selects sur iOS */
    .form-input[type="date"]::-webkit-date-and-time-value,
    .form-input[type="time"]::-webkit-date-and-time-value {
        text-align: left;
        margin-left: 0;
    }

    /* Empêcher le redimensionnement automatique */
    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Correction pour les modals sur iOS */
    .modal-content {
        -webkit-overflow-scrolling: touch;
        max-height: 85vh;
    }
}

/* Styles généraux pour tous les appareils */
.form-input[type="date"],
.form-input[type="time"] {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

/* Icône personnalisée pour les champs date/time */
.form-input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    cursor: pointer;
}

.form-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.form-input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ==================== STATISTIQUES ==================== */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    min-width: 0;
}

.stat-icon {
    font-size: 2rem;
    color: #00ffcc;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #aaa;
}

.stats-chart {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.stats-chart h3 {
    color: #00ffcc;
    margin-bottom: 1rem;
    text-align: center;
}

/* ==================== BOUTONS FLOTTANTS ==================== */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    z-index: 9999;
}

.floating-buttons button:not(.main-button) {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.floating-buttons button {
    background-color: rgba(128, 128, 128, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 1px 4px 6px rgba(0, 0, 0, 0.1);
    height: 54px;
    width: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-buttons button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-buttons button:hover {
    background-color: rgba(128, 128, 128, 0.8);
    transform: scale(1.1);
}

.floating-buttons button.main-button {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background-color: rgba(0, 255, 204, 0.7) !important;
    z-index: 100;
}

/* Style pour le bouton PDF */
.pdf-button {
    background-color: rgba(220, 53, 69, 0.5) !important;
}

.pdf-button:hover {
    background-color: rgba(220, 53, 69, 0.8) !important;
}

.refresh-button {
    background-color: rgba(255, 0, 0, 0.5) !important;
}

.refresh-button:hover {
    background-color: rgba(255, 0, 0, 0.8) !important;
}

.floating-buttons button.main-button:hover {
    background-color: rgba(0, 255, 204, 0.9) !important;
}

.add-entry-button {
    background-color: rgba(0, 255, 204, 0.5) !important;
}

.add-entry-button:hover {
    background-color: rgba(0, 255, 204, 0.8) !important;
}

.stats-button {
    background-color: rgba(255, 165, 0, 0.5) !important;
}

.stats-button:hover {
    background-color: rgba(255, 165, 0, 0.8) !important;
}

.export-button {
    background-color: rgba(128, 0, 255, 0.5) !important;
}

.export-button:hover {
    background-color: rgba(128, 0, 255, 0.8) !important;
}

.import-button {
    background-color: rgba(0, 128, 255, 0.5) !important;
}

.import-button:hover {
    background-color: rgba(0, 128, 255, 0.8) !important;
}

.delete-all-button {
    background-color: rgba(255, 50, 50, 0.5) !important;
}

.delete-all-button:hover {
    background-color: rgba(255, 50, 50, 0.8) !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 255, 204, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 204, 0);
    }
}

.floating-buttons button.main-button {
    animation: pulse 2s infinite;
}

.floating-buttons button.main-button:hover {
    animation: none;
}

/* ==================== ONGLETS MODAL ==================== */
.modal-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.75rem;
}

.modal-tab {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: #2a2a2a;
    border: 1px solid #555;
    border-radius: 8px;
    color: #aaa;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.modal-tab:hover {
    border-color: #00ffcc;
    color: #fff;
}

.modal-tab.active {
    background: rgba(0, 255, 204, 0.12);
    border-color: #00ffcc;
    color: #00ffcc;
}

/* ==================== MULTI-ENTRÉES ==================== */
.multi-entry-row {
    background: #242424;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    position: relative;
    transition: border-color 0.2s;
}

.multi-entry-row:hover {
    border-color: #555;
}

.multi-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.multi-row-number {
    font-size: 0.75rem;
    font-weight: bold;
    color: #00ffcc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.multi-row-duplicate {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.multi-row-duplicate:hover {
    color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
}

.multi-row-delete {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.multi-row-delete:hover {
    color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
}

.multi-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.multi-row-grid .form-group {
    margin-bottom: 0;
}

.multi-row-grid .form-group label {
    font-size: 0.78rem;
    margin-bottom: 0.3rem;
}

.multi-row-grid .form-input {
    padding: 0.5rem 0.6rem;
    font-size: 0.88rem;
}

.multi-row-grid .select-wrapper {
    position: relative;
}

.multi-row-full {
    grid-column: 1 / -1;
}

.multi-row-night {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #9c27b0;
    margin-top: 0.1rem;
}

.multi-row-night input[type="checkbox"] {
    accent-color: #9c27b0;
    width: 14px;
    height: 14px;
}

.multi-row-enddate {
    grid-column: 1 / -1;
    display: none;
}

.btn-add-row {
    width: 100%;
    padding: 0.65rem;
    background: rgba(0, 255, 204, 0.07);
    border: 1px dashed #00ffcc88;
    border-radius: 8px;
    color: #00ffcc;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-add-row:hover {
    background: rgba(0, 255, 204, 0.14);
    border-color: #00ffcc;
}

/* ==================== PDF THEME PICKER ==================== */
.pdf-theme-picker {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.pdf-theme-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.pdf-theme-btn:hover {
    transform: scale(1.15);
}

.pdf-theme-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* ==================== MENU HAMBURGER ==================== */
#hamburgerMenu {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9000;
}

#hamburgerBtn {
    background: linear-gradient(160deg, #222, #333);
    border: 1px solid #555;
    border-radius: 10px;
    color: #00ffcc;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

#hamburgerBtn:hover {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    transform: scale(1.05);
}

#hamburgerBtn.active {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.12);
    box-shadow: 0 0 10px #00ffcc44;
}

.hamburger-dropdown {
    margin-top: 0.5rem;
    background: linear-gradient(160deg, #222, #2e2e2e);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 0.4rem;
    min-width: 190px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.2s ease-out forwards;
}

/* ==================== PASTILLE CHANGELOG ==================== */
@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.75);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 0 7px rgba(255, 59, 48, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Wrapper interne du bouton hamburger pour positionner la pastille */
.hamburger-btn-inner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Pastille sur le bouton hamburger ☰ */
.changelog-badge {
    position: absolute;
    top: -15px;
    right: -13px;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle at 35% 35%, #ff6b6b, #e53935);
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    animation: badgePulse 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 9999;
}

/* Pastille à droite dans l'item "Notes de version" */
.changelog-badge-inline {
    width: 9px;
    height: 9px;
    min-width: 9px;
    background: radial-gradient(circle at 35% 35%, #ff6b6b, #e53935);
    border-radius: 50%;
    border: 1.5px solid #2a2a2a;
    animation: badgePulse 1.8s ease-in-out infinite;
    margin-left: auto;
    flex-shrink: 0;
    display: inline-block;
}

.hamburger-item {
    width: 100%;
    background: none;
    border: none;
    color: #ccc;
    font-size: 0.9rem;
    padding: 0.65rem 0.85rem;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.2s ease;
    text-align: left;
    font-family: "Gotham", sans-serif;
    overflow: visible;
}

.hamburger-item i {
    color: #00ffcc;
    width: 16px;
    text-align: center;
}

.hamburger-item:hover {
    background: rgba(0, 255, 204, 0.1);
    color: #fff;
}

.hamburger-separator {
    height: 1px;
    background: #333;
    margin: 0.3rem 0.4rem;
}

.hamburger-lang-label {
    font-size: 0.72rem;
    color: #666;
    padding: 0.3rem 0.85rem 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: bold;
}

.hamburger-lang-picker {
    display: flex;
    gap: 0.4rem;
    padding: 0.3rem 0.5rem 0.5rem;
}

.lang-btn {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 7px;
    color: #aaa;
    font-size: 0.82rem;
    padding: 0.45rem 0.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
    font-family: "Gotham", sans-serif;
}

.flag-icon {
    width: 22px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.lang-btn:hover {
    border-color: #00ffcc;
    color: #fff;
    background: rgba(0, 255, 204, 0.08);
}

.lang-btn.active {
    border-color: #00ffcc;
    background: rgba(0, 255, 204, 0.12);
    color: #00ffcc;
}

.changelog-version-block {
    margin-bottom: 1.5rem;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
}

.changelog-version-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #2a2a2a;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.changelog-version-number {
    font-size: 1rem;
    font-weight: bold;
    color: #00ffcc;
    letter-spacing: 0.03em;
}

.changelog-version-date {
    font-size: 0.78rem;
    color: #666;
}

.changelog-version-label {
    font-size: 0.72rem;
    font-weight: bold;
    padding: 2px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.changelog-label-new {
    background: rgba(0, 255, 204, 0.15);
    color: #00ffcc;
    border: 1px solid #00ffcc55;
}

.changelog-label-improvement {
    background: rgba(255, 152, 0, 0.15);
    color: #ff9800;
    border: 1px solid #ff980055;
}

.changelog-label-fix {
    background: rgba(255, 85, 85, 0.15);
    color: #ff5555;
    border: 1px solid #ff555555;
}

.changelog-label-launch {
    background: rgba(63, 81, 181, 0.2);
    color: #7986cb;
    border: 1px solid #7986cb55;
}

.changelog-changes {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.changelog-change-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: #ccc;
    line-height: 1.4;
}

.changelog-change-icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.75rem;
}

.changelog-change-icon.icon-new {
    color: #00ffcc;
}
.changelog-change-icon.icon-improvement {
    color: #ff9800;
}
.changelog-change-icon.icon-fix {
    color: #ff5555;
}

.changelog-loading {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* ==================== MESSAGES SYSTÈME ==================== */
.system-message {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 255, 204, 0.9);
    color: #1a1a1a;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: opacity 0.5s;
    text-align: center;
    max-width: 80%;
    word-wrap: break-word;
}

.system-message.error-message {
    background-color: rgba(255, 173, 173, 0.95);
    color: #5a1a1a;
    box-shadow: 0 2px 12px rgba(255, 173, 173, 0.4);
}

/* ==================== STYLES POUR LA VÉRIFICATION DE SUPPRESSION ==================== */

/* Conteneur du code de vérification */
.verification-code-container {
    text-align: center;
    margin: 1rem 0;
}

/* Affichage du code de vérification */
.verification-code-display {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 5px;
    color: #ff5555;
    background: rgba(255, 85, 85, 0.1);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ff5555;
    margin: 1rem 0;
    font-family: monospace;
    user-select: none;
}

/* Indication sous le code */
.verification-hint {
    color: #aaa;
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Champ de saisie du code */
.verification-code-input {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 5px;
    font-family: monospace;
}

/* Style pour le bouton de vérification désactivé */
#confirmVerifyBtn:disabled {
    background: #555 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

/* Style cohérent pour tous les boutons de suppression */
.btn-delete {
    background: #ff5555 !important;
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.btn-delete:hover {
    background: #ff3333 !important;
}

.btn-delete:disabled:hover {
    background: #555 !important;
}

/* Style spécifique pour les boutons dans les modals de confirmation */
#confirmModal .btn-save,
#deleteAllModal .btn-delete,
#verifyDeleteModal .btn-delete {
    background: #ff5555 !important;
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#confirmModal .btn-save:hover,
#deleteAllModal .btn-delete:hover,
#verifyDeleteModal .btn-delete:hover:not(:disabled) {
    background: #ff3333 !important;
}

/* Désactiver l'effet hover pour les boutons désactivés */
#verifyDeleteModal .btn-delete:disabled:hover {
    background: #555 !important;
    cursor: not-allowed;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .calendar-header h2 {
        font-size: 1.2rem;
    }

    .calendar-day .day-indicator {
        display: none;
    }

    /* Afficher quand même pour les congés sur mobile */
    .calendar-day.type-leave .day-indicator {
        /*display: flex !important;*/
        display: none;
    }

    .calendar-day {
        min-height: 50px;
        padding: 0.2rem;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .notes-icon {
        font-size: 0.6rem;
    }

    .day-hours.type-leave {
        font-size: 0.6rem;
    }

    .hours-summary {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .summary-item {
        padding: 0.8rem;
    }

    .summary-value {
        font-size: 1.3rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-content {
        padding: 1rem;
        max-height: 90vh;
    }

    .calendar-weekdays div {
        padding: 0.3rem;
        font-size: 0.8rem;
    }

    .entry-actions {
        position: static;
        display: flex;
        justify-content: flex-end;
        margin-top: 0.5rem;
        width: 100%;
    }

    .entry-edit,
    .entry-delete {
        width: 35px;
        height: 35px;
    }

    /* Correction spécifique pour iOS - champs de formulaire */
    .form-input[type="date"],
    .form-input[type="time"],
    .form-input[type="datetime-local"] {
        font-size: 16px; /* Important pour éviter le zoom */
        height: 44px; /* Taille minimale recommandée pour iOS */
        padding: 12px 10px; /* Plus de padding pour faciliter le clic */
    }

    /* Ajustement spécifique pour les selects */
    select.form-input {
        height: 44px;
        font-size: 16px;
    }

    /* S'assurer que les modals s'adaptent */
    .modal-content {
        width: 95vw;
        max-width: 95vw;
        margin: 10px;
        padding: 15px;
    }

    /* Ajustement spécifique pour les champs dans les modals sur iOS */
    #addEntryModal .form-input,
    #editEntryModal .form-input {
        min-height: 44px;
        line-height: 1.4;
    }

    /* Ajustements responsive pour la vérification */
    .verification-code-display {
        font-size: 1.8rem;
        letter-spacing: 4px;
        padding: 8px;
    }

    .verification-code-input {
        font-size: 1.1rem;
        letter-spacing: 4px;
        padding: 0.9rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1.1rem;
    }

    .calendar-day {
        min-height: 50px;
        padding: 0.2rem;
    }

    .day-indicator {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .entry-item {
        padding: 0.8rem;
    }

    .entry-date,
    .entry-time {
        font-size: 0.8rem;
    }

    .entry-hours {
        font-size: 1rem;
    }

    .entry-type {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .calendar-weekdays div {
        padding: 0.2rem;
        font-size: 0.75rem;
    }

    .modal-content {
        padding: 0.8rem;
        width: 98vw;
    }

    .small-modal {
        padding: 1rem !important;
    }

    /* Ajustements pour la vérification sur petits écrans */
    .verification-code-display {
        font-size: 1.5rem;
        letter-spacing: 3px;
        padding: 6px;
    }

    .verification-code-input {
        font-size: 1rem;
        letter-spacing: 3px;
        padding: 0.8rem;
    }

    .verification-hint {
        font-size: 0.8rem;
    }
}

/* Écrans très petits (iPhone SE, etc.) */
@media (max-width: 320px) {
    .calendar-day {
        min-height: 40px;
        padding: 0.1rem;
    }

    .day-number {
        font-size: 0.9rem;
    }

    .day-indicator {
        font-size: 0.6rem;
        padding: 1px 3px;
    }

    .summary-value {
        font-size: 1.1rem;
    }

    .entry-item {
        padding: 0.6rem;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    body {
        max-width: 1200px;
        margin: 0 auto;
        padding: 1rem;
    }

    .calendar-day {
        min-height: 100px;
    }
}

/* Taille pour les iPad Air en mode PAYSAGE */
@media only screen and (min-width: 1170px) and (max-width: 1190px) {
    body {
        padding: 5rem;
    }

    /* Styles pour iPad */
    .calendar-day {
        min-height: 65px;
    }

    .hours-summary {
        gap: 0.7rem;
    }
}

/* Taille pour les iPad Air en mode PORTRAIT */
@media only screen and (min-width: 810px) and (max-width: 830px) {
    body {
        padding: 3rem;
    }

    /* Styles pour iPad */
    .calendar-day {
        min-height: 65px;
    }

    .hours-summary {
        gap: 0.7rem;
    }
}