/**
 * Session Modal Styles
 * Styling for session resume and inactivity warning modals
 */

/* Session Resume Modal */
.session-resume-modal {
    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;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

.session-resume-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.session-resume-content h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.session-details p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
}

.session-details strong {
    color: #333;
    font-weight: 600;
}

.session-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.session-actions button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-link {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-size: 14px;
    padding: 10px;
    margin-top: 8px;
}

.btn-link:hover {
    background: #dc3545;
    color: white;
}

/* Inactivity Warning Modal */
.inactivity-warning-modal {
    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: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.inactivity-warning-modal.show {
    opacity: 1;
}

.inactivity-warning-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: pulse 0.5s ease-out;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: bounce 1s infinite;
}

.inactivity-warning-content h3 {
    margin: 0 0 16px 0;
    font-size: 22px;
    color: #333;
}

.inactivity-warning-content p {
    margin: 0 0 24px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.warning-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning-actions button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-continue {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-save-close {
    background: #6c757d;
    color: white;
}

.btn-save-close:hover {
    background: #5a6268;
}

/* Wizard Messages */
.wizard-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10002;
    animation: slideInRight 0.3s ease-out;
    font-weight: 500;
}

.wizard-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wizard-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .session-resume-content,
    .inactivity-warning-content {
        padding: 24px;
        max-width: 95%;
    }
    
    .session-resume-content h2,
    .inactivity-warning-content h3 {
        font-size: 20px;
    }
    
    .session-actions button,
    .warning-actions button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .wizard-message {
        right: 10px;
        left: 10px;
        top: 10px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .session-resume-content,
    .inactivity-warning-content {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .session-resume-content h2,
    .inactivity-warning-content h3 {
        color: #e2e8f0;
    }
    
    .session-details {
        background: #1a202c;
    }
    
    .session-details p {
        color: #cbd5e0;
    }
    
    .session-details strong {
        color: #e2e8f0;
    }
    
    .inactivity-warning-content p {
        color: #cbd5e0;
    }
}

/* Loading State */
.session-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.session-modal-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
