/* Luna Flow - Styles personnalisés */

/* Couleurs personnalisées pour le calendrier menstruel */
.menstrual-day {
    background: linear-gradient(135deg, #fecaca 0%, #f87171 100%);
    border: 2px solid #ef4444 !important;
    color: #7f1d1d;
}

.fertile-day {
    background: linear-gradient(135deg, #bbf7d0 0%, #4ade80 100%);
    border: 2px solid #22c55e !important;
    color: #14532d;
}

.ovulation-day {
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
    color: #78350f;
}

.predicted-day {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border: 2px dashed #6366f1 !important;
    color: #312e81;
}

/* Animations et transitions */
.calendar-day {
    transition: all 0.2s ease-in-out;
}

.calendar-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Indicateurs de symptômes - Version améliorée */
.symptom-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin: 1px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    transition: all 0.2s ease;
}

.symptom-indicator:hover {
    transform: scale(1.3);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Indicateurs avec intensité numérique */
.symptom-indicator-with-number {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1px;
    font-size: 8px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.symptom-indicator-with-number:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Badge de symptômes amélioré */
.symptom-badge {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    margin: 1px;
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
}

/* Styles pour les onglets */
nav button {
    transition: all 0.3s ease;
}

nav button:hover {
    transform: translateY(-1px);
}

/* Amélioration des formulaires */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ff6b9d;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animation pour les notifications */
.notification-enter {
    transform: translateX(100%);
    opacity: 0;
}

.notification-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease-in-out;
}

/* Amélioration des modals */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Modal symptômes - Taille optimisée pour desktop */
#symptom-modal .modal-content {
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#symptom-modal .modal-form {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sticky header pour le calendrier sur mobile */
.sticky {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .calendar-day {
        min-height: 60px !important;
        font-size: 14px;
        padding: 4px;
    }
    
    .symptom-indicator {
        width: 10px;
        height: 10px;
    }
    
    .symptom-indicator-with-number {
        width: 14px;
        height: 14px;
        font-size: 7px;
    }
    
    .symptom-badge {
        font-size: 8px;
        padding: 1px 4px;
    }
    
    .container {
        padding: 1rem;
    }
    
    nav button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    /* Modal responsive pour mobile */
    #symptom-modal .modal-content {
        max-height: 85vh !important;
        margin: 0.5rem !important;
        width: calc(100% - 1rem) !important;
        max-width: none !important;
    }
    
    #symptom-modal .modal-form {
        max-height: 75vh;
        overflow-y: auto;
        padding: 1rem !important;
    }
    
    /* Espacement réduit pour mobile */
    #symptom-modal .symptom-section {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Boutons plus grands sur mobile */
    #symptom-modal button {
        min-height: 48px !important;
        font-size: 16px !important;
        padding: 12px 16px !important;
    }
    
    /* Textarea plus petite sur mobile */
    #symptom-modal textarea {
        min-height: 60px !important;
        resize: vertical;
    }
    
    /* Messages d'aide plus visibles sur mobile */
    #symptom-modal .text-xs {
        font-size: 12px !important;
    }
    
    /* Appui long visual feedback */
    .calendar-day.touch-active {
        transform: scale(0.95);
        background-color: rgba(255, 107, 157, 0.1) !important;
    }
}

/* Amélioration de l'accessibilité */
.calendar-day:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Animation pour les jours du calendrier */
.calendar-day {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles pour les tooltips des symptômes */
.symptom-indicator[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
}