/* ═══════════════════════════════════════════
   SMS Extra Styles (v2)
═══════════════════════════════════════════ */

/* ── Welcome card ── */
.sms-welcome-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, var(--c-sidebar-bg, #0f172a) 0%, var(--c-primary, #1a56db) 100%);
  border-radius: 16px;
  padding: 28px 32px;
  color: #fff;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.sms-welcome-card::before {
  content:'';
  position:absolute;
  top:-40px;right:-40px;
  width:220px;height:220px;
  background:rgba(255,255,255,.05);
  border-radius:50%;
}
.sms-welcome-avatar {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
}
.sms-welcome-info { flex:1; z-index:1; }
.sms-welcome-info h2 { margin:0 0 4px; font-size:1.3rem; font-weight:700; }
.sms-welcome-info p  { margin:0; color:rgba(255,255,255,.75); font-size:14px; }
.sms-welcome-date {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  z-index:1;
  color:rgba(255,255,255,.7);
  font-size:13px;
  gap:2px;
}
.sms-welcome-date strong { color:#fff; font-size:15px; }

/* ── Quick action tiles ── */
.sms-quick-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.sms-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.sms-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.12); text-decoration:none; }
.sms-tile-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;
  flex-shrink:0;
}
.sms-tile-body { flex:1; display:flex; flex-direction:column; gap:2px; }
.sms-tile-body strong { color:#1e293b; font-weight:600; }
.sms-tile-body span   { color:#64748b; font-size:12px; }
.sms-tile-arrow { color:#94a3b8; font-size:1.1rem; font-weight:700; }

.sms-tile--blue   { background:#eff6ff; border-color:#bfdbfe; }
.sms-tile--blue   .sms-tile-icon { background:#dbeafe; color:#1d4ed8; }
.sms-tile--green  { background:#f0fdf4; border-color:#bbf7d0; }
.sms-tile--green  .sms-tile-icon { background:#dcfce7; color:#15803d; }
.sms-tile--purple { background:#faf5ff; border-color:#e9d5ff; }
.sms-tile--purple .sms-tile-icon { background:#f3e8ff; color:#7c3aed; }
.sms-tile--orange { background:#fff7ed; border-color:#fed7aa; }
.sms-tile--orange .sms-tile-icon { background:#ffedd5; color:#c2410c; }

/* ── Role panels ── */
.sms-teacher-panels,
.sms-student-panels { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media(max-width:900px){ .sms-teacher-panels,.sms-student-panels{grid-template-columns:1fr;} }

.sms-dash-modules { display:flex; flex-direction:column; gap:24px; margin-top:24px; }
.sms-dash-section {}
.sms-dash-section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.sms-dash-section-header h3 { margin:0; font-size:1rem; font-weight:700; color:#1e293b; }
.sms-link-all { font-size:13px; color:var(--c-primary,#1a56db); text-decoration:none; font-weight:500; }
.sms-link-all:hover { text-decoration:underline; }

/* ── Front page ── */
.sms-hero {
  border-radius: 20px;
  padding: 72px 64px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, var(--c-primary,#1a56db) 100%);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
}
.sms-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,.9) 0%, rgba(26,86,219,.4) 100%);
}
.sms-hero-content { position:relative; z-index:1; max-width:680px; }
.sms-hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}
.sms-hero-headline {
  font-family: var(--font-display,'Outfit',sans-serif);
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 16px;
}
.sms-hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 520px;
}
.sms-hero-cta { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:28px; }
.sms-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
}
.sms-hero-btn--primary {
  background: #fff;
  color: var(--c-primary,#1a56db);
}
.sms-hero-btn--primary:hover { background:#f0f4ff; transform:translateY(-1px); text-decoration:none; color:var(--c-primary,#1a56db); }
.sms-hero-btn--ghost {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}
.sms-hero-btn--ghost:hover { background:rgba(255,255,255,.18); text-decoration:none; color:#fff; }
.sms-hero-btn-arrow { font-size:1.1rem; }
.sms-hero-badges { display:flex; gap:10px; flex-wrap:wrap; }
.sms-hero-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}

/* Stats band */
.sms-front-stats {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
  border: 1px solid var(--c-border,#e2e8f0);
  box-shadow: var(--shadow,0 1px 3px rgba(0,0,0,.08));
}
.sms-front-section-title {
  font-family: var(--font-display,'Outfit',sans-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 24px;
  text-align: center;
}
.sms-front-stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
  text-align: center;
}
.sms-front-stat-num {
  font-family: var(--font-display,'Outfit',sans-serif);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--c-primary,#1a56db);
  line-height: 1;
  margin-bottom: 6px;
}
.sms-front-stat-label { font-size: 13px; color: #64748b; }

/* About block */
.sms-front-about {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 28px;
  border: 1px solid var(--c-border,#e2e8f0);
}
.sms-front-about-inner { display:flex; gap:40px; align-items:center; }
.sms-front-about-text { flex:1; }
.sms-front-about-text h2 { font-size:1.4rem; font-weight:700; margin:0 0 12px; }
.sms-front-about-text p  { color:#64748b; line-height:1.7; margin:0; }
.sms-front-about-img { flex-shrink:0; }
.sms-front-about-img img { width:280px; height:200px; object-fit:cover; border-radius:12px; }

/* Lower section */
.sms-front-lower { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:24px; }
.sms-front-widget {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--c-border,#e2e8f0);
  box-shadow: var(--shadow,0 1px 3px rgba(0,0,0,.08));
}
.sms-front-widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}
.sms-front-quicklinks { display:flex; flex-direction:column; gap:10px; }
.sms-ql {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: all .15s;
  border: 1px solid transparent;
}
.sms-ql:hover { text-decoration:none; transform:translateX(4px); }
.sms-ql-icon { font-size:1.3rem; width:36px; text-align:center; }
.sms-ql div  { display:flex; flex-direction:column; gap:2px; }
.sms-ql strong { font-size:14px; font-weight:600; color:#1e293b; }
.sms-ql span   { font-size:12px; color:#64748b; }
.sms-ql--blue   { background:#eff6ff; border-color:#bfdbfe; }
.sms-ql--orange { background:#fff7ed; border-color:#fed7aa; }
.sms-ql--purple { background:#faf5ff; border-color:#e9d5ff; }
.sms-ql--green  { background:#f0fdf4; border-color:#bbf7d0; }

/* Header role badge */
.sms-header-role {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.sms-header-role--admin    { background:#dbeafe; color:#1e40af; }
.sms-header-role--director { background:#ede9fe; color:#5b21b6; }
.sms-header-role--teacher  { background:#d1fae5; color:#065f46; }
.sms-header-role--student  { background:#fce7f3; color:#9d174d; }
.sms-header-role--parent   { background:#fef9c3; color:#854d0e; }

.sms-header-user { display:flex; align-items:center; gap:10px; }
.sms-header-login-btn {
  background: var(--c-primary,#1a56db);
  color: #fff;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight:600;
  text-decoration:none;
  transition: opacity .15s;
}
.sms-header-login-btn:hover { opacity:.9; text-decoration:none; color:#fff; }

/* Nav user card */
.sms-nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,.06);
  border-radius: 10px;
  margin-bottom: 8px;
}
.sms-nav-user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-primary,#1a56db);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.sms-nav-user-info { display:flex; flex-direction:column; gap:1px; min-width:0; }
.sms-nav-user-info strong { font-size:13px; color:#e2e8f0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.sms-nav-user-info span   { font-size:11px; color:#64748b; text-transform:capitalize; }

.sms-nav-item--logout { color:#f87171 !important; }
.sms-nav-item--logout:hover { background:rgba(248,113,113,.1) !important; color:#f87171 !important; }

.sms-brand-logo-img { width:48px; height:48px; object-fit:contain; border-radius:8px; margin-bottom:10px; }

/* Toggle button lines */
.sms-header-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.sms-header-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: #64748b;
  border-radius: 2px;
  transition: all .2s;
}

/* Responsive */
@media(max-width:1200px) { .sms-front-stats-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:900px)  { .sms-front-lower { grid-template-columns:1fr; } .sms-hero { padding:48px 32px; } .sms-hero-headline { font-size:1.9rem; } }
@media(max-width:700px)  { .sms-front-stats-grid { grid-template-columns:repeat(2,1fr); } .sms-hero { padding:36px 24px; border-radius:12px; } .sms-hero-headline { font-size:1.5rem; } }
@media(max-width:600px)  {
  .sms-quick-tiles { grid-template-columns:1fr; }
  .sms-welcome-card { flex-direction:column; text-align:center; }
  .sms-welcome-date { align-items:center; }
  .sms-header-toggle { display:flex; }
}
