/* ============================================================
   My School - Main Stylesheet
   Primary #2563EB | Secondary #10B981 | Accent #F59E0B | Danger #EF4444
   ============================================================ */
:root {
  --primary: #2563EB;
  --primary-dark: #1d4ed8;
  --secondary: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;
  --bg: #F3F4F6;
  --text: #1F2937;
  --muted: #6B7280;
  --card: #ffffff;
}
* { box-sizing: border-box; }
body {
  font-family: 'Poppins', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.6;
}
a { text-decoration: none; color: var(--primary); }
h1, h2, h3, h4, h5 { font-weight: 700; color: var(--text); }
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--secondary); border-color: var(--secondary); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ---------- Landing ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  backdrop-filter: blur(6px);
}
.navbar-brand { font-weight: 700; font-size: 1.4rem; color: var(--primary); }
.hero {
  background: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  color: #fff; padding: 90px 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.15), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,.12), transparent 40%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 3rem; }
.hero .lead { font-size: 1.25rem; opacity: .95; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); padding: 6px 14px; border-radius: 30px; font-size: .9rem;
}
.section { padding: 70px 0; }
.section-title { text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.feature-card {
  background: var(--card); border-radius: 16px; padding: 30px 24px; text-align: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.06); transition: transform .25s, box-shadow .25s;
  height: 100%;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(37,99,235,.15); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.step-card {
  text-align: center; padding: 30px 20px; position: relative;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; margin-bottom: 14px;
}
.testimonial-card { background:#fff; border-radius:16px; padding:26px; box-shadow:0 6px 24px rgba(0,0,0,.06); height:100%; }
.stars { color: var(--accent); }
.pricing-card { background:#fff; border-radius:18px; padding:30px; box-shadow:0 6px 24px rgba(0,0,0,.06); position:relative; height:100%; }
.pricing-card.popular { border: 2px solid var(--primary); transform: scale(1.03); }
.popular-badge { position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--primary); color:#fff; padding:4px 16px; border-radius:20px; font-size:.8rem; }
.price { font-size:2.2rem; font-weight:700; color:var(--primary); }
.stat-counter { font-size:2.6rem; font-weight:700; color:var(--primary); }
.blog-card { background:#fff; border-radius:16px; overflow:hidden; box-shadow:0 6px 24px rgba(0,0,0,.06); height:100%; }
.blog-card img { width:100%; height:170px; object-fit:cover; }
.blog-body { padding:20px; }
.footer { background:#111827; color:#cbd5e1; padding:50px 0 20px; }
.footer a { color:#cbd5e1; }
.footer a:hover { color:#fff; }
.footer .social a { display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center; background:rgba(255,255,255,.08); border-radius:50%; margin-right:8px; }
.newsletter input { border-radius:30px 0 0 30px; border:none; }
.newsletter button { border-radius:0 30px 30px 0; }

/* ---------- Dashboard / Admin ---------- */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 255px; background: #0f172a; color: #cbd5e1; flex-shrink: 0;
  position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; transition: .3s; z-index: 1040;
}
.sidebar .brand { padding: 18px 20px; font-size: 1.3rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .nav-link { color: #cbd5e1; padding: 10px 20px; display: flex; align-items: center; gap: 10px; border-left: 3px solid transparent; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(37,99,235,.18); color: #fff; border-left-color: var(--primary); }
.sidebar .nav-section { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 14px 20px 4px; }
.sidebar .submenu .nav-link { padding-left: 46px; font-size: .9rem; }
.sidebar .submenu { display: none; }
.sidebar .has-sub.open .submenu { display: block; }
.sidebar .has-sub > .nav-link .chev { margin-left: auto; transition: transform .2s; }
.sidebar .has-sub.open > .nav-link .chev { transform: rotate(90deg); }

.main-content { flex: 1; margin-left: 255px; display: flex; flex-direction: column; min-width: 0; }
.topbar { background:#fff; padding: 14px 22px; box-shadow:0 1px 8px rgba(0,0,0,.05); display:flex; align-items:center; gap:14px; position:sticky; top:0; z-index: 1030; }
.topbar .toggle { display:none; font-size:1.4rem; cursor:pointer; }
.content-wrap { padding: 26px; }
.stat-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 4px 18px rgba(0,0,0,.05); display:flex; align-items:center; gap:16px; }
.stat-card .ic { width:52px; height:52px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.4rem; color:#fff; }
.stat-card .val { font-size:1.6rem; font-weight:700; }
.welcome-card { background: linear-gradient(135deg, var(--primary), var(--secondary)); color:#fff; border-radius:16px; padding:26px; }
.panel { background:#fff; border-radius:14px; padding:22px; box-shadow:0 4px 18px rgba(0,0,0,.05); }
.table thead th { background:#f8fafc; }
.activity-feed { list-style:none; padding:0; margin:0; }
.activity-feed li { padding:10px 0; border-bottom:1px solid #f1f5f9; display:flex; gap:10px; align-items:center; }
.badge-dot { width:8px; height:8px; border-radius:50%; background:var(--primary); flex-shrink:0; }

/* Cards & utilities */
.card-shadow { box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.rounded-xl { border-radius: 16px; }
.menu-overlay { position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:1035; display:none; }

.alert { border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.alert-success { background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; }
.alert-danger { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.alert-info { background:#eff6ff; color:#1e40af; border:1px solid #bfdbfe; }

.form-control, .form-select { border-radius: 10px; }
label { font-weight: 500; }

/* Print */
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .content-wrap { padding: 0 !important; }
  body { background: #fff; }
  .print-header { display: block !important; }
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar .toggle { display: block; }
  .menu-overlay.show { display: block; }
  .pricing-card.popular { transform: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.1rem; }
  .stat-counter { font-size: 2rem; }
}
