/* ==========================================================================
   iPurv Travel Protection Portal - Standalone Customer InsurTech App Styles
   Modern Slate & Electric Cyan Theme
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --portal-bg: #090e17;
  --portal-surface: #0f172a;
  --portal-surface-elevated: #162238;
  --portal-card: #1e293b;
  --portal-card-border: rgba(148, 163, 184, 0.16);
  --portal-card-border-glow: rgba(6, 182, 212, 0.35);

  --portal-cyan: #06b6d4;
  --portal-cyan-hover: #0891b2;
  --portal-cyan-subtle: rgba(6, 182, 212, 0.12);

  --portal-emerald: #10b981;
  --portal-emerald-subtle: rgba(16, 185, 129, 0.14);

  --portal-indigo: #6366f1;
  --portal-amber: #f59e0b;
  --portal-rose: #f43f5e;

  --portal-text-main: #f8fafc;
  --portal-text-muted: #94a3b8;
  --portal-text-dim: #64748b;

  --portal-radius: 12px;
  --portal-radius-lg: 16px;
  --portal-font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --portal-font-display: 'Outfit', 'Inter', sans-serif;
}

body.portal-app-body {
  font-family: var(--portal-font-main);
  background-color: var(--portal-bg);
  color: var(--portal-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6, .portal-display {
  font-family: var(--portal-font-display);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.portal-navbar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--portal-card-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.portal-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--portal-font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.portal-brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--portal-cyan) 0%, var(--portal-indigo) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.portal-brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--portal-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  font-weight: 700;
}

.portal-nav-link {
  color: var(--portal-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.portal-nav-link:hover, .portal-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.portal-nav-link.active {
  color: var(--portal-cyan);
  background: var(--portal-cyan-subtle);
}

/* Status Pill */
.portal-session-pill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--portal-card-border);
  color: var(--portal-text-muted);
  font-size: 0.78rem;
  font-family: monospace;
  padding: 0.35rem 0.75rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.live-beacon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--portal-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.portal-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-card-border);
  border-radius: var(--portal-radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.portal-card-elevated {
  background: var(--portal-surface-elevated);
  border: 1px solid var(--portal-card-border);
  border-radius: var(--portal-radius-lg);
  padding: 1.5rem;
}

.portal-stat-widget {
  background: var(--portal-surface);
  border: 1px solid var(--portal-card-border);
  border-radius: var(--portal-radius);
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.portal-stat-widget:hover {
  transform: translateY(-2px);
  border-color: var(--portal-card-border-glow);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.12);
}

.portal-stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-portal-primary {
  background: linear-gradient(135deg, var(--portal-cyan) 0%, #0284c7 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.65rem 1.25rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-portal-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #22d3ee 0%, var(--portal-cyan) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-portal-outline {
  background: transparent;
  color: var(--portal-text-main) !important;
  border: 1px solid var(--portal-card-border);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.6rem 1.15rem;
  transition: all 0.2s ease;
}

.btn-portal-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
}

/* ==========================================================================
   Segmented OTP Inputs
   ========================================================================== */
.otp-container {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.otp-box {
  width: 48px;
  height: 58px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: monospace;
  border-radius: 10px;
  background: #0b1120;
  border: 2px solid #334155;
  color: #38bdf8;
  transition: all 0.2s ease;
}

.otp-box:focus {
  border-color: var(--portal-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
  background: #0f172a;
  outline: none;
  color: #ffffff;
}

.otp-box.filled {
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(6, 182, 212, 0.05);
}

/* ==========================================================================
   Tables
   ========================================================================== */
.portal-table {
  color: var(--portal-text-main);
  border-color: var(--portal-card-border);
  margin-bottom: 0;
}

.portal-table th {
  background: #0b1322 !important;
  color: var(--portal-text-dim);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--portal-card-border);
}

.portal-table td {
  background: transparent !important;
  color: var(--portal-text-main);
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--portal-card-border);
  vertical-align: middle;
}

.portal-table tbody tr {
  transition: background-color 0.15s ease;
}

.portal-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}

/* Policy Code Pill */
.portal-policy-pill {
  font-family: monospace;
  font-weight: 700;
  font-size: 0.85rem;
  color: #38bdf8;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
}

/* Form Controls in Portal */
.portal-form-control {
  background-color: #0b1322;
  border: 1px solid #334155;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
}

.portal-form-control:focus {
  background-color: #0e172a;
  border-color: var(--portal-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
  color: #ffffff;
}

.portal-form-control::placeholder {
  color: var(--portal-text-dim);
}

/* Full-Screen Modal Overrides */
.modal-portal-fullscreen .modal-content {
  background: #090e17;
  color: var(--portal-text-main);
}

.modal-portal-fullscreen .modal-header {
  background: #0f172a;
  border-bottom: 1px solid var(--portal-card-border);
}

.modal-portal-fullscreen .modal-body {
  background: #090e17;
}

.modal-portal-fullscreen .modal-footer {
  background: #0f172a;
  border-top: 1px solid var(--portal-card-border);
}

.portal-dossier-card {
  background: #0f172a;
  border: 1px solid var(--portal-card-border);
  border-radius: var(--portal-radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Boarding Pass Upload Dropzone & Status Indicators
   ========================================================================== */
.portal-dropzone {
  border: 2px dashed rgba(6, 182, 212, 0.35);
  background: rgba(15, 23, 42, 0.6);
  border-radius: var(--portal-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.portal-dropzone:hover,
.portal-dropzone.drag-over {
  border-color: var(--portal-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

.portal-dropzone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  color: var(--portal-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  transition: transform 0.2s ease;
}

.portal-dropzone:hover .portal-dropzone-icon {
  transform: translateY(-3px) scale(1.05);
}

.portal-file-preview-card {
  background: #0b1322;
  border: 1px solid var(--portal-card-border-glow);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Boarding Pass Status Badges */
.badge-bp-verified {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-bp-review {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-bp-pending {
  background: rgba(6, 182, 212, 0.15) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-bp-none {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.action-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

