/**
 * Session Expiry Warning Modal Styles
 * Supports both light and dark themes
 */

.session-expiry-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;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(4px);
}

.session-expiry-modal.visible {
  opacity: 1;
  visibility: visible;
}

.session-expiry-content {
  background: var(--surface-elevated, #1a1a2e);
  border: 1px solid var(--border, #333);
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.session-expiry-icon {
  margin-bottom: 20px;
  color: var(--warning, #f59e0b);
}

.session-expiry-icon svg {
  width: 56px;
  height: 56px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.session-expiry-content h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary, #fff);
}

.session-expiry-content p {
  margin: 0 0 28px 0;
  color: var(--text-secondary, #a0a0a0);
  font-size: 15px;
  line-height: 1.6;
}

.session-expiry-content #session-countdown {
  color: var(--warning, #f59e0b);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.session-expiry-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.session-expiry-actions .btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-width: 140px;
}

.session-expiry-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.session-expiry-actions .btn-primary {
  background: var(--accent, #63ffe2);
  color: var(--accent-text, #000);
}

.session-expiry-actions .btn-primary:hover:not(:disabled) {
  background: var(--accent-hover, #4de8cc);
  transform: translateY(-1px);
}

.session-expiry-actions .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.session-expiry-actions .btn-secondary {
  background: var(--surface, #252540);
  color: var(--text-primary, #fff);
  border: 1px solid var(--border, #333);
}

.session-expiry-actions .btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover, #303050);
  border-color: var(--border-hover, #444);
}

/* Light theme adjustments */
[data-theme="light"] .session-expiry-modal {
  background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .session-expiry-content {
  background: var(--surface-elevated, #fff);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .session-expiry-actions .btn-secondary {
  background: var(--surface, #f5f5f5);
  color: var(--text-primary, #1a1a1a);
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .session-expiry-content {
    padding: 24px 20px;
    margin: 16px;
  }

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

  .session-expiry-actions .btn {
    width: 100%;
  }

  .session-expiry-icon svg {
    width: 48px;
    height: 48px;
  }

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