/**
 * Session Guard - Styles
 */

/* Message de session expirée */
.session-expired-message {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.session-expired-message h2 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 24px;
}

.session-expired-message p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.session-expired-message .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.2s;
}

.session-expired-message .btn-primary:hover {
    background: #0056b3;
}

/* Avertissement d'expiration imminente */
.session-warning {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    padding: 15px 20px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.3s ease-out;
}

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

.session-warning span {
    flex: 1;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.session-warning .btn-extend {
    padding: 8px 15px;
    background: #ffc107;
    color: #212529;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s;
}

.session-warning .btn-extend:hover {
    background: #e0a800;
}

.session-warning .btn-close {
    padding: 0;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    color: #856404;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
}

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

/* Container avec session expirée */
.container.session-expired {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mode sombre */
@media (prefers-color-scheme: dark) {
    .session-expired-message {
        background: #2d2d2d;
        color: #fff;
    }
    
    .session-expired-message p {
        color: #aaa;
    }
    
    .session-warning {
        background: #3d3d00;
        border-color: #6d6d00;
    }
    
    .session-warning span {
        color: #ffc107;
    }
}
