/**
 * 🎨 SESSION EXPIRATION STYLES - SEMTOOLS-WORKSPACE
 * Styles pour les notifications et messages d'expiration de session
 */

/* === OVERLAY DE SESSION EXPIRÉE === */
.session-expired-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.session-expired-dialog {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.session-expired-dialog .icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.session-expired-dialog .icon i {
    color: #f39c12;
}

.session-expired-dialog h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.session-expired-dialog p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.session-expired-dialog .actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.session-expired-dialog button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-expired-dialog .btn-primary {
    background: #3498db;
    color: white;
}

.session-expired-dialog .btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* === NOTIFICATION DE SESSION === */
.session-warning-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.session-warning-notification .icon {
    font-size: 1.5rem;
    color: #f39c12;
}

.session-warning-notification .content {
    flex: 1;
}

.session-warning-notification .content h4 {
    margin: 0 0 0.25rem 0;
    color: #856404;
    font-size: 0.95rem;
    font-weight: 600;
}

.session-warning-notification .content p {
    margin: 0;
    color: #856404;
    font-size: 0.85rem;
}

.session-warning-notification .close {
    background: none;
    border: none;
    color: #856404;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.session-warning-notification .close:hover {
    opacity: 1;
}

/* === BADGE D'ACTIVITÉ === */
.session-activity-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: #7f8c8d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-activity-badge.active {
    border-color: #27ae60;
}

.session-activity-badge .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27ae60;
    animation: pulse 2s infinite;
}

.session-activity-badge.inactive .indicator {
    background: #95a5a6;
    animation: none;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* === TOAST AMÉLIORÉ POUR SESSION === */
.toast.session-expired {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-left: 4px solid #d68910;
}

.toast.session-expired .toast-icon {
    color: white;
}

.toast.session-expired .toast-message {
    color: white;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .session-expired-dialog {
        max-width: 90%;
        padding: 1.5rem;
    }
    
    .session-warning-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .session-activity-badge {
        bottom: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* === DARK MODE === */
@media (prefers-color-scheme: dark) {
    .session-expired-dialog {
        background: #2c3e50;
    }
    
    .session-expired-dialog h3 {
        color: #ecf0f1;
    }
    
    .session-expired-dialog p {
        color: #bdc3c7;
    }
    
    .session-activity-badge {
        background: #34495e;
        border-color: #2c3e50;
        color: #bdc3c7;
    }
}