/* CSS pour le système de rappels moderne - Thème sombre */

/* Conteneur principal des rappels */
.rappels-container {
    position: relative;
    display: inline-block;
}

/* Bouton principal des rappels */
.rappels-btn {
    background: #2d2d2d;
    color: #f0f0f0;
    border: 1px solid #404040;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
}

.rappels-btn:hover {
    background: #3a3a3a;
    border-color: #505050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

/* Badge du nombre de rappels */
.rappels-badge {
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 0 4px rgba(255, 107, 107, 0.5);
}

/* Icône d'alerte */
.rappels-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Panneau des rappels */
.rappels-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: #303030;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
    width: 400px;
    max-height: 420px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.rappels-panel.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Corps du panneau */
.rappels-body {
    max-height: 350px;
    overflow-y: auto;
    background: #303030;
    padding-bottom: 5px;
}

/* Scrollbar personnalisée */
.rappels-body::-webkit-scrollbar {
    width: 8px;
}

.rappels-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.rappels-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.rappels-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Liste des rappels */
.rappels-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Groupe de rappels par spectacle */
.rappel-group {
    border-bottom: 1px solid #2a2a2a;
    padding: 0;
}

.rappel-group:last-child {
    border-bottom: none;
}

/* Lien du spectacle */
.rappel-spectacle-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    text-decoration: none;
    color: inherit;
    background: #282828;
    transition: background 0.2s;
}

.rappel-spectacle-link:hover {
    background: #222;
}

/* Compteur de tâches */
.rappel-count {
    background: #404040;
    color: #b0b0b0;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* Titre du spectacle */
.rappel-spectacle-titre {
    font-weight: 600;
    color: #f0f0f0;
    font-size: 13px;
}

/* Liste des tâches */
.rappel-taches-list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Item de rappel */
.rappel-item {
    padding: 0;
    transition: background 0.2s;
}

.rappel-item:hover {
    background: #252525;
}

.rappel-item > a {
    display: block;
    padding: 8px 20px 8px 35px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.rappel-item > a:hover {
    text-decoration: none;
}

/* Contenu du rappel */
.rappel-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Indicateur de statut */
.rappel-status {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
}

.rappel-status i {
    font-size: 12px;
    transition: all 0.3s ease;
}

.rappel-status.urgent i {
    color: #ff4444;
    text-shadow: 0 0 8px rgba(255, 68, 68, 0.6);
}

.rappel-status.today i {
    color: #ff9800;
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
}

.rappel-status.soon i {
    color: #ffc107;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.rappel-status.later i {
    color: #666;
    text-shadow: none;
    opacity: 0.7;
}

/* Détails du rappel */
.rappel-details {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rappel-info {
    flex: 1;
}

.rappel-task {
    color: #b0b0b0;
    font-size: 12px;
    display: block;
}

/* Badge de date */
.rappel-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.rappel-badge.overdue {
    background: rgba(255, 68, 68, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.rappel-badge.today {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.rappel-badge.tomorrow {
    background: rgba(255, 193, 7, 0.2);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Message vide */
.rappels-empty {
    padding: 40px 20px;
    text-align: center;
    color: #808080;
}

.rappels-empty-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.3;
    fill: #666;
}

.rappels-empty-text {
    font-size: 14px;
    color: #666;
}

/* Effet de lueur au survol des items */
.rappel-item:hover .rappel-status i {
    filter: brightness(1.3);
    transform: scale(1.1);
}

.rappel-item:hover .rappel-status.later i {
    color: #999;
    opacity: 1;
}

/* Barre latérale pour les groupes */
.rappel-taches-list:before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #404040;
    opacity: 0.3;
}

/* Transition fluide pour les badges */
.rappel-badge {
    transition: all 0.3s ease;
}

.rappel-item:hover .rappel-badge {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 480px) {
    .rappels-panel {
        width: calc(100vw - 40px);
        right: -20px;
    }
}

/* Animation de pulse pour le badge */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0 rgba(255, 107, 107, 0.6);
    }
    70% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 15px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

.rappels-btn.has-urgent {
    animation: pulse 2s infinite;
}

.rappels-btn.has-urgent .rappels-badge {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 4px rgba(255, 107, 107, 0.5);
    }
    to {
        box-shadow: 0 0 12px rgba(255, 107, 107, 0.8);
    }
} 