/* MeetSum — Formal UI for government / IAS officers */
:root {
  --navy: #0b3d5c;
  --navy-dark: #072a40;
  --navy-light: #135a84;
  --gold: #c4a35a;
  --gold-soft: #f5f0e6;
  --bg: #f0f2f5;
  --card: #ffffff;
  --text: #1a2332;
  --muted: #5a6a7a;
  --border: #d0d7de;
  --success: #0d7a4f;
  --danger: #b42318;
  --live: #c62828;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(11, 61, 92, 0.08), 0 4px 16px rgba(11, 61, 92, 0.06);
  --font: "Segoe UI", "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-head: "Georgia", "Times New Roman", serif;
}

[data-theme="dark"] {
  --bg: #0c1520;
  --card: #132030;
  --text: #e8eef4;
  --muted: #9aafc0;
  --border: #243447;
  --gold-soft: #2a2418;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-light); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--navy); }

/* Official header strip */
.gov-strip {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 40%, var(--gold) 40%, var(--gold) 60%, var(--navy) 60%);
}

.sidebar {
  width: 268px;
  background: var(--navy);
  color: #e8eef4;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  transition: transform .25s ease;
}
.sidebar-brand {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sidebar-brand .brand-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.sidebar-brand .brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-top: 4px;
}
.sidebar-nav { padding: 12px 10px; flex: 1; }
.nav-link-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 6px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 2px;
  transition: .15s;
}
.nav-link-item:hover, .nav-link-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.main {
  flex: 1;
  margin-left: 268px;
  min-height: 100vh;
  padding: 28px 32px 100px;
  max-width: 1180px;
}

.topbar-mobile {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--navy);
  color: #fff;
  z-index: 50;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
}

.bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--card);
  border-top: 1px solid var(--border);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  height: 60px;
}
.bn-item {
  display: flex; flex-direction: column; align-items: center;
  font-size: 10px; color: var(--muted); gap: 2px; min-width: 56px;
  text-decoration: none; font-weight: 500;
}
.bn-item.active { color: var(--navy); font-weight: 700; }
.bn-fab {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  margin-top: -16px;
  box-shadow: 0 4px 14px rgba(11,61,92,0.35);
  text-decoration: none; font-size: 1.25rem; font-weight: 700;
}

.page-title {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.01em;
}
[data-theme="dark"] .page-title { color: #e8eef4; }
.page-sub { color: var(--muted); margin-top: 4px; font-size: 0.92rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 18px 20px; }
.card-hover { transition: box-shadow .15s, border-color .15s; }
.card-hover:hover { border-color: var(--navy-light); box-shadow: 0 4px 20px rgba(11,61,92,0.12); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0;
}
@media (min-width: 768px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  border-left: 4px solid var(--navy);
}
.stat-card.gold { border-left-color: var(--gold); }
.stat-card.live { border-left-color: var(--live); }
.stat-card.ok { border-left-color: var(--success); }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1.15; }
[data-theme="dark"] .stat-value { color: #fff; }
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge-scheduled { background: #e8f0f6; color: var(--navy); }
.badge-live { background: #fde8e8; color: #9b1c1c; }
.badge-completed { background: #e6f5ee; color: #0d5c3a; }
.badge-cancelled { background: #f0f0f0; color: #555; }
[data-theme="dark"] .badge-scheduled { background: #1a3348; color: #9ec5e0; }
[data-theme="dark"] .badge-live { background: #4a1a1a; color: #f5a5a5; }
[data-theme="dark"] .badge-completed { background: #143d2c; color: #8fd4b0; }

.recording-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: .15s;
  text-decoration: none;
  font-family: var(--font);
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--navy); color: #fff;
}
.btn-primary:hover { background: var(--navy-dark); color: #fff; text-decoration: none; }
.btn-gold {
  background: var(--gold); color: #1a1508;
}
.btn-gold:hover { filter: brightness(1.05); color: #1a1508; text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--navy);
  border: 1px solid var(--border);
}
[data-theme="dark"] .btn-outline { color: #e8eef4; }
.btn-outline:hover { background: var(--gold-soft); border-color: var(--gold); text-decoration: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 22px; font-size: 1rem; }

.form-label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
[data-theme="dark"] .form-label { color: #c5d4e0; }
.form-control, .form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font-size: 0.925rem;
  font-family: var(--font);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 61, 92, 0.15);
}
textarea.form-control { min-height: 80px; resize: vertical; }

.meeting-grid {
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .meeting-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .meeting-grid { grid-template-columns: repeat(3, 1fr); } }

.meeting-card-bar { height: 3px; width: 100%; background: var(--navy); }
.meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--muted); margin-top: 5px;
}

.level-meter {
  height: 6px; background: var(--border); border-radius: 99px; overflow: hidden;
}
.level-fill {
  height: 100%; width: 4%;
  background: var(--navy);
  border-radius: 99px; transition: width .08s;
}

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 2.1rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy); font-family: var(--font-head);
}
[data-theme="dark"] .timer { color: #fff; }

.alert {
  padding: 12px 16px; border-radius: 6px; margin-bottom: 16px;
  font-size: 0.9rem; border-left: 4px solid;
}
.alert-success { background: #e6f5ee; color: #0d5c3a; border-color: var(--success); }
.alert-info { background: #e8f0f6; color: var(--navy); border-color: var(--navy); }
.alert-warn { background: var(--gold-soft); color: #5c4a1e; border-color: var(--gold); }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-head { text-align: center; font-size: 0.72rem; color: var(--muted); padding: 8px; font-weight: 700; text-transform: uppercase; }
.cal-day {
  min-height: 70px; padding: 6px; background: var(--card);
  border: 1px solid var(--border); border-radius: 4px;
  text-align: left;
}
.cal-day.muted { opacity: .4; }
.cal-day.today .day-num {
  background: var(--navy); color: #fff;
  width: 24px; height: 24px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.cal-event {
  font-size: 10px; padding: 2px 4px; border-radius: 3px;
  color: #fff; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--navy);
}

.live-transcript-box {
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border));
  border-radius: 6px;
  padding: 12px;
  font-size: 0.9rem;
  min-height: 60px;
  max-height: 140px;
  overflow-y: auto;
  margin-top: 12px;
}

.official-banner {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.official-banner strong { color: var(--gold); }

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(7,42,64,.5);
    z-index: 35;
  }
  .sidebar-overlay.show { display: block; }
  .main { margin-left: 0; padding: 72px 14px 90px; }
  .topbar-mobile { display: flex; }
  .bottom-nav { display: block; }
}

/* ——— 8/4 responsive grid ——— */
.row-84 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 992px) {
  .row-84 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* ~8/4 */
  }
}
.col-8 { min-width: 0; }
.col-4 { min-width: 0; }

.tips-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
}
.tips-title {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--navy);
  margin: 0 0 10px;
  font-weight: 700;
}
[data-theme="dark"] .tips-title { color: #e8eef4; }
.tips-list {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.tips-list li { margin-bottom: 6px; }
.tips-list code {
  font-size: 0.78rem;
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 0.9rem;
}
.check-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.otp-input {
  font-size: 1.25rem;
  letter-spacing: 0.35em;
  text-align: center;
}


/* ——— Professional e-Ostech ad panel ——— */
.ad-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 3px solid #c4a35a;
}
.ad-header {
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .ad-header { background: #f8fafc; }
.ad-logo {
  display: block;
  width: 100%;
  height: 55px;
  object-fit: contain;
  object-position: center;
}
.ad-video-wrap {
  background: #061825;
  width: 100%;
  aspect-ratio: 16 / 9;
  line-height: 0;
}
.ad-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.ad-body { padding: 14px 16px 16px; }
.ad-tagline {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}
.ad-products {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
}
.ad-products li { margin-bottom: 4px; }
.ad-contact {
  font-size: 0.84rem;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}
.ad-label {
  display: inline-block;
  min-width: 48px;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ad-contact a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
[data-theme="dark"] .ad-contact a { color: #9ec5e0; }
.ad-contact a:hover { text-decoration: underline; }
.ad-address {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}
.ad-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  text-decoration: none;
}
.ad-cta-secondary {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  text-decoration: none;
}

/* Calendar day cell — show more meetings */
.cal-day {
  min-height: 100px;
  max-height: 160px;
  display: flex;
  flex-direction: column;
}
.cal-day-events {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  margin-top: 2px;
  scrollbar-width: thin;
}
.cal-event {
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  color: #fff !important;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-decoration: none !important;
}
.cal-more {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 3px;
  text-decoration: none;
  padding: 2px 4px;
  background: var(--gold-soft);
  border-radius: 3px;
}
[data-theme="dark"] .cal-more { color: #c4a35a; }


/* Ad carousel */
.ad-video-wrap { position: relative; }
.ad-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(11, 61, 92, 0.85);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
}
.ad-nav:hover { background: #0b3d5c; }
.ad-prev { left: 8px; }
.ad-next { right: 8px; }
.ad-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 0;
}
.ad-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.ad-dot.active { background: var(--navy); }
[data-theme="dark"] .ad-dot.active { background: #c4a35a; }

/* Brand logo: width 100%, height 55px, clear text */
.sidebar-brand {
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.brand-link {
  display: block;
  text-decoration: none !important;
  line-height: 0;
}
.brand-logo-img {
  display: block;
  width: 100%;
  height: 55px;
  object-fit: contain;
  object-position: left center;
}
