/* ── Reset ───────────────────────────────────────────────── */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

/* ── GSK Brand Tokens ────────────────────────────────────── */
:root {
  --gsk-orange:      #F36C21;
  --gsk-orange-dark: #D45A14;
  --gsk-navy:        #1C1C3A;
  --gsk-navy-light:  #2A2A50;
  --gsk-white:       #FFFFFF;
  --gsk-bg:          #F5F6FA;
  --gsk-card:        #FFFFFF;
  --gsk-border:      #E2E6EF;
  --gsk-text:        #1C1C3A;
  --gsk-muted:       #6B7280;
  --gsk-green:       #00875A;
  --gsk-green-bg:    #E6F5EF;
}

/* ── Body ────────────────────────────────────────────────── */
body {
  background: var(--gsk-bg);
  color: var(--gsk-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gsk-navy);
  color: var(--gsk-white);
  padding: 0 36px;
  height: 64px;
  border-bottom: 3px solid var(--gsk-orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logo {
  width: 38px;
  height: 38px;
  background: var(--gsk-orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.header-title h1 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.header-title p {
  font-size: 11px;
  color: #A0AEC0;
  margin-top: 1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }

.primary { background: var(--gsk-orange); color: white; }
.primary:hover { background: var(--gsk-orange-dark); }

.secondary {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.secondary:hover { background: rgba(255,255,255,0.08); }

.btn-outline {
  background: transparent;
  color: var(--gsk-orange);
  border: 1.5px solid var(--gsk-orange);
}
.btn-outline:hover { background: #FEF0E8; }

/* ── Main Layout ─────────────────────────────────────────── */
.container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--gsk-card);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(28,28,58,0.10);
  border: 1px solid var(--gsk-border);
  width: 100%;
  max-width: 860px;
  overflow: hidden;
}

/* ── Pre-Login Hero ──────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--gsk-navy) 0%, var(--gsk-navy-light) 100%);
  padding: 52px 48px 44px;
  color: white;
  text-align: center;
  border-bottom: 4px solid var(--gsk-orange);
}

.hero-badge {
  display: inline-block;
  background: rgba(243,108,33,0.18);
  color: var(--gsk-orange);
  border: 1px solid rgba(243,108,33,0.4);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 20px;
}

.hero-banner h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-banner h2 span { color: var(--gsk-orange); }

.hero-subtitle {
  font-size: 15px;
  color: #A0AEC0;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-actions .btn { min-width: 160px; padding: 12px 28px; }

/* ── Feature Strip ───────────────────────────────────────── */
.feature-strip {
  display: flex;
  border-bottom: 1px solid var(--gsk-border);
}

.feature-strip-item {
  flex: 1;
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-right: 1px solid var(--gsk-border);
}
.feature-strip-item:last-child { border-right: none; }

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FEF0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gsk-text);
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 12px;
  color: var(--gsk-muted);
  line-height: 1.5;
}

/* ── Info Section ────────────────────────────────────────── */
.info-section {
  padding: 32px 40px;
  background: #FAFBFD;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.info-card {
  flex: 1;
  min-width: 180px;
  background: white;
  border: 1px solid var(--gsk-border);
  border-radius: 10px;
  padding: 20px;
}
.info-card-icon { font-size: 22px; margin-bottom: 10px; }
.info-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.info-card p {
  font-size: 12px;
  color: var(--gsk-muted);
  line-height: 1.55;
}

/* ── Dashboard Welcome Banner ───────────────────────────── */
.welcome-banner {
  background: linear-gradient(135deg, var(--gsk-navy) 0%, var(--gsk-navy-light) 100%);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid var(--gsk-orange);
  flex-wrap: wrap;
  gap: 16px;
}

.welcome-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.avatar {
  width: 52px;
  height: 52px;
  background: var(--gsk-orange);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

.welcome-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}
.welcome-text p { font-size: 13px; color: #A0AEC0; }

.session-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--gsk-green-bg);
  color: var(--gsk-green);
  border: 1px solid #B7DFCF;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
}

.session-dot {
  width: 8px;
  height: 8px;
  background: var(--gsk-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── Tab Bar ─────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  gap: 2px;
  padding: 0 32px;
  border-bottom: 1px solid var(--gsk-border);
  background: white;
}

.tab {
  padding: 14px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--gsk-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.tab:hover { color: var(--gsk-text); }
.tab.active { color: var(--gsk-orange); border-bottom-color: var(--gsk-orange); }

/* ── Tab Content Area ────────────────────────────────────── */
.tab-content-area {
  padding: 32px 40px;
  background: #FAFBFD;
  min-height: 320px;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Overview Panel ──────────────────────────────────────── */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.stat-card {
  background: white;
  border: 1px solid var(--gsk-border);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  background: #FEF0E8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-icon.green-bg  { background: var(--gsk-green-bg); }
.stat-icon.blue-bg   { background: #EBF3FF; }
.stat-icon.purple-bg { background: #F3EEFF; }

.stat-label {
  font-size: 11px;
  color: var(--gsk-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.stat-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--gsk-text);
}

.alert-info {
  background: #EBF3FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid #2563EB;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: #1E40AF;
  line-height: 1.6;
}

/* ── About Panel ─────────────────────────────────────────── */
.about-header { margin-bottom: 20px; }
.about-header h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.about-header p {
  font-size: 13px;
  color: var(--gsk-muted);
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-item {
  background: white;
  border: 1px solid var(--gsk-border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about-item-icon { font-size: 22px; flex-shrink: 0; }
.about-item h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.about-item p {
  font-size: 12px;
  color: var(--gsk-muted);
  line-height: 1.5;
}

/* ── Settings Panel ──────────────────────────────────────── */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row {
  background: white;
  border: 1px solid var(--gsk-border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setting-info h4 { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.setting-info p  { font-size: 12px; color: var(--gsk-muted); }

.toggle {
  width: 42px;
  height: 24px;
  background: var(--gsk-green);
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  top: 3px;
  right: 3px;
}
.toggle.off { background: #CBD5E1; }
.toggle.off::after { right: auto; left: 3px; }

.badge-tag {
  background: #FEF0E8;
  color: var(--gsk-orange);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(243,108,33,0.25);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 12px;
  color: #6B7280;
  background: var(--gsk-navy);
  border-top: 1px solid #2A2A50;
}
.footer span { color: var(--gsk-orange); font-weight: 600; }
