/* ── Variables ────────────────────────────────────────────── */
:root {
  --primary:   #0B1F3A;
  --secondary: #22d3ee;
  --primary-light: #1a3562;
  --secondary-dark: #0891b2;
  --bg-light:  #f8fafc;
  --border:    #e2e8f0;
  --text-muted: #64748b;
}

/* ── Base ────────────────────────────────────────────────── */
body {
  background-color: var(--bg-light);
  color: #1e293b;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Navbar ──────────────────────────────────────────────── */
.lc-navbar {
  background-color: var(--primary);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  padding: 10px 0;
}
.lc-navbar .navbar-brand img { vertical-align: middle; }
.lc-navbar .brand-help {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: .5px;
  vertical-align: middle;
}
.lc-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: 14px;
  transition: color .2s;
  padding: 8px 12px;
}
.lc-navbar .nav-link:hover,
.lc-navbar .nav-link.active { color: var(--secondary) !important; }

.btn-lc-outline {
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  padding: 8px 18px;
  transition: all .2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-lc-outline:hover {
  background: var(--secondary);
  color: var(--primary);
  text-decoration: none;
}

/* ── Main ────────────────────────────────────────────────── */
.lc-main { flex: 1; }

/* ── Footer ──────────────────────────────────────────────── */
.lc-footer {
  background: var(--primary);
  color: rgba(255,255,255,.7);
  padding: 16px 0;
  font-size: 13px;
}
.footer-link { color: var(--secondary); text-decoration: none; font-size: 13px; }
.footer-link:hover { color: #fff; }

/* ── Cards ───────────────────────────────────────────────── */
.lc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  padding: 28px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-light);
}
.btn-lc {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: var(--primary);
  font-weight: 600;
}
.btn-lc:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #fff;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-label { font-weight: 600; font-size: 14px; color: #374151; }
.form-control, .form-select {
  border-color: var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.required-star { color: #ef4444; }

/* ── Page Header ─────────────────────────────────────────── */
.page-header {
  background: var(--primary);
  color: #fff;
  padding: 28px 0;
  margin-bottom: 28px;
  border-radius: 10px;
}
.page-header h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
.page-header p { margin: 6px 0 0; color: rgba(255,255,255,.75); font-size: 14px; }

/* ── Ticket Cards ────────────────────────────────────────── */
.ticket-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 12px;
  transition: box-shadow .2s, border-color .2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.ticket-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  border-color: var(--secondary);
  text-decoration: none;
  color: inherit;
}
.ticket-number { font-size: 12px; color: var(--text-muted); font-family: monospace; }
.ticket-subject { font-weight: 600; font-size: 15px; margin: 4px 0; }
.ticket-meta { font-size: 12px; color: var(--text-muted); }

/* ── Star Rating ─────────────────────────────────────────── */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; width: fit-content; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 28px;
  color: #d1d5db;
  cursor: pointer;
  transition: color .15s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f59e0b; }

/* ── Status Badges ───────────────────────────────────────── */
.badge { font-size: 11px; font-weight: 600; letter-spacing: .4px; padding: 5px 10px; }

/* ── Hero / Landing ──────────────────────────────────────── */
.lc-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  margin-bottom: 32px;
}
.lc-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.lc-hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; }
.btn-google {
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.btn-google:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.25); color: var(--primary); }
.btn-google img { width: 22px; height: 22px; }

.lc-feature-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
}
.lc-feature-card i { font-size: 2rem; color: var(--secondary); margin-bottom: 12px; }
.lc-feature-card h5 { color: #fff; font-weight: 600; font-size: 15px; }
.lc-feature-card p { color: rgba(255,255,255,.65); font-size: 13px; margin: 0; }

/* ── Admin Sidebar ───────────────────────────────────────── */
.admin-sidebar {
  background: var(--primary);
  min-height: 100vh;
  width: 240px;
  position: fixed;
  left: 0; top: 0;
  padding: 0;
  z-index: 100;
}
.admin-sidebar .sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar .sidebar-brand img { height: 32px; }
.sidebar-nav { padding: 12px 0; }
.sidebar-nav .nav-link {
  color: rgba(255,255,255,.75);
  padding: 10px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .2s;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  color: var(--secondary);
  background: rgba(255,255,255,.07);
  text-decoration: none;
}
.sidebar-nav .nav-link i { width: 18px; text-align: center; }

.admin-content {
  margin-left: 240px;
  min-height: 100vh;
  background: var(--bg-light);
}
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-topbar h5 { margin: 0; font-size: 16px; font-weight: 700; color: var(--primary); }
.admin-body { padding: 24px 28px; }

/* ── Stats Cards ─────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.stat-value { font-size: 1.8rem; font-weight: 700; line-height: 1; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Ticket Detail ───────────────────────────────────────── */
.ticket-detail-header {
  background: var(--primary);
  color: #fff;
  border-radius: 10px 10px 0 0;
  padding: 20px 24px;
}
.ticket-body { background: #fff; border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; padding: 24px; }
.reply-bubble {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  max-width: 88%;
}
.reply-user { background: #f1f5f9; margin-right: auto; }
.reply-admin { background: #eff6ff; margin-left: auto; border-left: 3px solid var(--secondary); }
.reply-meta { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }

/* ── Tables ──────────────────────────────────────────────── */
.table { font-size: 14px; }
.table th { font-weight: 600; color: var(--primary); background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

/* ── Responsive Admin ────────────────────────────────────── */
@media (max-width: 991px) {
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}

/* ── Misc ────────────────────────────────────────────────── */
.text-cyan { color: var(--secondary) !important; }
.bg-primary-dark { background: var(--primary) !important; }
a { color: var(--secondary-dark); }
a:hover { color: var(--primary); }
.form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ── Learner portal ─────────────────────────────────────── */
.auth-shell { min-height: calc(100vh - 190px); display:flex; align-items:center; justify-content:center; padding:28px 0; }
.auth-card { width:100%; max-width:460px; }
.auth-card-wide { max-width:680px; }
.auth-heading { text-align:center; margin-bottom:24px; }
.auth-heading > i { width:52px; height:52px; display:inline-flex; align-items:center; justify-content:center; border-radius:14px; background:#ecfeff; color:var(--secondary-dark); font-size:22px; margin-bottom:14px; }
.auth-heading h1, .form-page h1 { color:var(--primary); font-size:1.55rem; font-weight:750; margin-bottom:6px; }
.auth-heading p { color:var(--text-muted); font-size:14px; margin:0; }
.auth-foot { text-align:center; color:var(--text-muted); font-size:14px; margin:22px 0 0; }
.otp-input { text-align:center; font-size:1.5rem; letter-spacing:.55rem; font-weight:700; }
.welcome-strip { display:flex; justify-content:space-between; align-items:center; gap:24px; padding:30px; margin-bottom:30px; border-radius:14px; color:#fff; background:linear-gradient(135deg,var(--primary),#173963); }
.welcome-strip h1 { font-size:1.75rem; font-weight:750; margin:5px 0; }
.welcome-strip p { color:rgba(255,255,255,.72); margin:0; }
.eyebrow { color:var(--secondary); text-transform:uppercase; letter-spacing:.1em; font-size:11px; font-weight:700; }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin:26px 0 14px; }
.section-heading h2 { color:var(--primary); font-size:1.25rem; font-weight:750; margin:0; }
.section-heading p { color:var(--text-muted); font-size:13px; margin:3px 0 0; }
.course-card { display:flex; gap:16px; height:100%; padding:22px; border:1px solid var(--border); border-radius:12px; background:#fff; box-shadow:0 1px 5px rgba(15,23,42,.05); }
.course-icon { flex:0 0 44px; height:44px; border-radius:11px; background:#ecfeff; color:var(--secondary-dark); display:flex; align-items:center; justify-content:center; }
.course-card h3 { color:var(--primary); font-size:1rem; font-weight:700; margin:2px 0 14px; }
.course-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; font-size:13px; }
.course-meta span { overflow-wrap:anywhere; }.course-meta small { display:block; color:var(--text-muted); font-size:10px; text-transform:uppercase; letter-spacing:.05em; margin-bottom:2px; }
.refund-state { margin-top:14px; color:#92400e; background:#fffbeb; display:inline-block; padding:6px 9px; border-radius:6px; font-size:12px; }
.empty-state { text-align:center; padding:48px 24px; }.empty-state > i { font-size:2.4rem; color:#cbd5e1; }.empty-state h3 { color:var(--primary); font-size:1.15rem; margin:14px 0 5px; }.empty-state p { color:var(--text-muted); font-size:14px; }
.compact-empty { color:var(--text-muted); text-align:center; }.status-pill { background:#eff6ff; color:#1d4ed8; border-radius:20px; padding:5px 9px; font-size:11px; font-weight:650; }
.form-page { max-width:720px; margin:10px auto 35px; }.back-link { display:inline-block; color:var(--text-muted); font-size:13px; margin-bottom:14px; text-decoration:none; }
@media(max-width:767px){.lc-card{padding:20px}.welcome-strip{padding:24px;align-items:flex-start;flex-direction:column}.welcome-strip .btn{width:100%}.section-heading{align-items:flex-start}.course-meta{grid-template-columns:1fr 1fr}.course-meta span:last-child{grid-column:1/-1}.auth-shell{align-items:flex-start;padding-top:8px}.navbar-brand img{max-width:150px;height:auto!important}}
