/**
 * Session Timeout Modal Styles
 */

/* Modal */
.session-timeout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.session-timeout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

/* Content */
.session-timeout-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon */
.session-timeout-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #92400e;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* Text */
.session-timeout-content h3 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.session-timeout-content p {
    margin: 0 0 8px;
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
}

.session-timeout-time {
    font-size: 28px;
    font-weight: 700;
    color: #dc2626;
    display: inline-block;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    min-width: 80px;
}

.session-timeout-subtitle {
    font-size: 14px !important;
    color: #9ca3af !important;
    margin-bottom: 24px !important;
}

/* Actions */
.session-timeout-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.session-timeout-actions button {
    flex: 1;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.session-timeout-extend {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

.session-timeout-extend:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(225, 29, 72, 0.4);
}

.session-timeout-logout {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
}

.session-timeout-logout:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Shake animation */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.session-timeout-shake {
    animation: shake 0.5s;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .session-timeout-content {
        background: #1f2937;
    }

    .session-timeout-content h3 {
        color: #f3f4f6;
    }

    .session-timeout-content p {
        color: #9ca3af;
    }

    .session-timeout-subtitle {
        color: #6b7280 !important;
    }

    .session-timeout-logout {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }

    .session-timeout-logout:hover {
        background: #4b5563;
        border-color: #6b7280;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .session-timeout-content {
        padding: 32px 24px;
        max-width: 95%;
    }

    .session-timeout-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .session-timeout-icon svg {
        width: 32px;
        height: 32px;
    }

    .session-timeout-content h3 {
        font-size: 20px;
    }

    .session-timeout-content p {
        font-size: 14px;
    }

    .session-timeout-time {
        font-size: 24px;
    }

    .session-timeout-actions {
        flex-direction: column;
    }

    .session-timeout-actions button {
        width: 100%;
    }
}

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

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