/* Session Timeout Dialog Styles */
.session-timeout-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.session-timeout-dialog.show {
    opacity: 1;
    visibility: visible;
}

.session-timeout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.session-timeout-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.session-timeout-dialog.show .session-timeout-content {
    transform: scale(1);
}

.session-timeout-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-timeout-header i {
    font-size: 24px;
}

.session-timeout-header h5 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.session-timeout-body {
    padding: 20px 24px;
    color: #6c757d;
    line-height: 1.6;
}

.session-timeout-body p {
    margin-bottom: 12px;
}

.session-timeout-body p:last-child {
    margin-bottom: 0;
}

.session-timeout-body strong {
    color: #dc3545;
    font-weight: 600;
}

.session-timeout-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    border-top: 1px solid #e9ecef;
}

.session-timeout-footer .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.session-timeout-footer .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.session-timeout-footer .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.session-timeout-footer .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.session-timeout-footer .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.session-timeout-footer .btn-primary:hover {
    background-color: #0056b3;
    border-color: #004085;
}

/* Animation for countdown timer */
#countdown-timer {
    display: inline-block;
    padding: 2px 6px;
    background-color: #dc3545;
    color: white;
    border-radius: 4px;
    font-weight: bold;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 576px) {
    .session-timeout-content {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .session-timeout-header,
    .session-timeout-body,
    .session-timeout-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .session-timeout-footer {
        flex-direction: column;
    }
    
    .session-timeout-footer .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .session-timeout-content {
        background-color: #2d3748;
        color: #e2e8f0;
    }
    
    .session-timeout-header {
        border-bottom-color: #4a5568;
    }
    
    .session-timeout-header h5 {
        color: #e2e8f0;
    }
    
    .session-timeout-body {
        color: #a0aec0;
    }
    
    .session-timeout-footer {
        border-top-color: #4a5568;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .session-timeout-content {
        border: 2px solid #000;
    }
    
    .session-timeout-header,
    .session-timeout-footer {
        border-color: #000;
    }
    
    .session-timeout-body strong {
        color: #000;
        background-color: #ffff00;
        padding: 1px 3px;
    }
}
