/* ═══════════════════════════════════════════════════
   Yuitor – Global Styles
═══════════════════════════════════════════════════ */

:root {
  --primary: #3b5bdb;
  --primary-dark: #2f4ac3;
  --accent: #7048e8;
  --text: #1a1a2e;
  --muted: #6c757d;
  --border: #e9ecef;
  --bg-soft: #f8f9fa;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
}

/* ── Brand ── */
.brand-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
}
.brand-icon-sm { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.brand-name { font-weight: 800; font-size: 1.4rem; color: var(--text); }

/* ── Navbar ── */
.navbar .nav-link {
  font-weight: 500;
  color: #374151 !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 8px;
  transition: all 0.15s;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
  color: var(--primary) !important;
  background: rgba(59,91,219,0.06);
}
.dropdown-menu { border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); padding: 8px; }
.dropdown-item { border-radius: 8px; font-size: 0.9rem; padding: 0.5rem 1rem; }
.dropdown-item:hover { background: rgba(59,91,219,0.06); color: var(--primary); }

/* ── Buttons ── */
.btn-primary { background: var(--primary); border-color: var(--primary); font-weight: 600; border-radius: 10px; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); font-weight: 600; border-radius: 10px; }
.btn-outline-primary:hover { background: var(--primary); }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 40%, #f5f0ff 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,91,219,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,91,219,0.08);
  border: 1px solid rgba(59,91,219,0.2);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--primary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.2)} }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; color: var(--muted); line-height: 1.7; }
.hero-visual {
  background: linear-gradient(135deg, rgba(59,91,219,0.08), rgba(112,72,232,0.08));
  border: 1px solid rgba(59,91,219,0.1);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
}
.hero-icon-wrap {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 16px 40px rgba(59,91,219,0.3);
}
.floating-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ── Stats bar ── */
.stats-bar { background: var(--primary); color: #fff; padding: 32px 0; }
.stats-bar .stat-value { font-size: 2.2rem; font-weight: 900; }
.stats-bar .stat-label { font-size: 0.85rem; opacity: 0.75; }

/* ── Section ── */
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.section-desc { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Cards ── */
.card { border: 1px solid var(--border); border-radius: 20px; transition: all 0.2s; }
.card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-2px); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.class-card {
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: all 0.2s;
}
.class-card:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(59,91,219,0.15); transform: translateY(-3px); color: inherit; }
.class-card .class-num { font-size: 2.5rem; font-weight: 900; color: var(--primary); }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 32px; height: 100%; }
.feature-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* ── Testimonials ── */
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; height: 100%; }
.user-avatar { width: 44px; height: 44px; background: linear-gradient(135deg,var(--primary),var(--accent)); border-radius: 50%; display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:1.1rem;flex-shrink:0; }
.stars { color: #f59e0b; font-size: 0.85rem; }

/* ── CTA Banner ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.cta-section::before { width: 300px;height:300px;top:-100px;left:-100px; }
.cta-section::after  { width: 400px;height:400px;bottom:-150px;right:-150px; }

/* ── Dashboard ── */
.sidebar { width: 260px; min-height: 100vh; background: #fff; border-right: 1px solid var(--border); padding: 24px 0; flex-shrink: 0; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: #374151; text-decoration: none; font-weight: 500; border-radius: 0; transition: all 0.15s; font-size: 0.95rem; }
.sidebar-link:hover { background: rgba(59,91,219,0.06); color: var(--primary); }
.sidebar-link.active { background: rgba(59,91,219,0.1); color: var(--primary); border-right: 3px solid var(--primary); }
.sidebar-link i { width: 20px; text-align: center; }
.dashboard-content { flex: 1; padding: 32px; background: var(--bg-soft); min-height: 100vh; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.stat-card .stat-number { font-size: 2rem; font-weight: 800; }
.stat-card .stat-icon-box { width: 48px; height: 48px; border-radius: 12px; display:flex;align-items:center;justify-content:center;font-size:20px; }

/* ── Admin ── */
.admin-sidebar { width: 240px; background: #1e293b; min-height: 100vh; flex-shrink: 0; }
.admin-sidebar .sidebar-brand { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-sidebar .sidebar-link { color: rgba(255,255,255,0.7); padding: 12px 20px; }
.admin-sidebar .sidebar-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.admin-sidebar .sidebar-link.active { background: rgba(59,91,219,0.3); color: #fff; border-right: 3px solid var(--primary); }
.admin-content { flex: 1; padding: 32px; background: var(--bg-soft); }
.admin-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 24px; }

/* ── Table ── */
.table { border-radius: 12px; overflow: hidden; }
.table th { background: #f8f9fa; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-top: none; }
.table td { vertical-align: middle; }

/* ── Badges ── */
.badge { font-weight: 600; }
.status-paid   { background: #d1fae5; color: #065f46; }
.status-pending{ background: #fef3c7; color: #92400e; }
.status-overdue{ background: #fee2e2; color: #991b1b; }

/* ── Forms ── */
.form-control, .form-select { border: 2px solid var(--border); border-radius: 10px; padding: 0.65rem 1rem; font-size: 0.95rem; transition: border 0.15s; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,91,219,0.12); }
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }

/* ── Auth ── */
.auth-wrapper { min-height: 100vh; background: linear-gradient(135deg, #f0f4ff, #f5f0ff); display: flex; align-items: center; }
.auth-card { background: #fff; border-radius: 24px; padding: 48px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); max-width: 460px; width: 100%; margin: auto; }

/* ── Timeline ── */
.timeline { position: relative; }
.timeline::before { content:'';position:absolute;left:50%;transform:translateX(-50%);top:0;bottom:0;width:2px;background:var(--border); }
.timeline-item { display: flex; gap: 24px; margin-bottom: 40px; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot { width: 44px;height:44px;background:var(--primary);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;flex-shrink:0;box-shadow:0 0 0 4px rgba(59,91,219,0.15); }
.timeline-content { flex: 1; background:#fff;border:2px solid rgba(59,91,219,0.1);border-radius:16px;padding:20px 24px;box-shadow:0 2px 12px rgba(0,0,0,0.05); }

/* ── Course cards ── */
.program-card { border: 2px solid var(--border); border-radius: 24px; padding: 32px; transition: all 0.2s; }
.program-card:hover { border-color: var(--primary); box-shadow: 0 16px 48px rgba(59,91,219,0.12); }
.check-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; margin-bottom: 8px; }
.check-item i { color: #10b981; margin-top: 2px; flex-shrink: 0; }

/* ── FAQ ── */
.accordion-button { font-weight: 600; }
.accordion-button:not(.collapsed) { color: var(--primary); background: rgba(59,91,219,0.04); }
.accordion-button::after { color: var(--primary); }
.accordion-item { border-radius: 12px !important; overflow: hidden; margin-bottom: 8px; }

/* ── Misc ── */
.hover-white:hover { color: #fff !important; }
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.btn-white { background: #fff; color: var(--primary); font-weight: 700; border-radius: 12px; border: none; }
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--primary); }
.badge-pill { padding: 4px 12px; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.subject-tag { background: rgba(59,91,219,0.08); color: var(--primary); padding: 3px 12px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }

/* ── Page header ── */
.page-hero { background: linear-gradient(135deg, #f8f9ff, #eef2ff, #f5f0ff); padding: 80px 0 60px; text-align: center; }
.page-hero h1 { font-weight: 900; font-size: clamp(1.8rem,4vw,3rem); }

@media (max-width: 768px) {
  .hero-section { padding: 60px 0 50px; }
  .sidebar, .admin-sidebar { width: 100%; min-height: auto; }
  .timeline::before { left: 22px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; }
}
