/* assets/student.css */

:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --brand: #0ea5a5;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #e6eff1;
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.brand strong{ display:block; font-size: 16px; }
.brand span{ display:block; font-size: 12px; color: var(--muted); }

.topbar-right{
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

h1{ margin: 8px 0 16px; font-size: 32px; }

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card{
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.card h2{ margin: 0 0 6px; font-size: 18px; }
.card p{ margin: 0; color: var(--muted); }

.list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.list-item a{ text-decoration: none; color: inherit; }
.muted{ color: var(--muted); margin-top: 4px; }

.content-block{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}

.media-block{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}


.bar{
  width:100%;
  height:10px;
  border-radius:999px;
  background:#eef2f6;
  overflow:hidden;
  border:1px solid var(--border);
}
.bar-fill{
  height:100%;
  background: var(--brand);
}


.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  color:var(--muted);
  margin-right:10px;
}
.pill-ok{
  border-color: rgba(14,165,165,.35);
  color: #0f766e;
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}


/* --- Layout v2: sidebar + main --- */

:root{
  --sidebar-w: 290px;
}

/* Container most 2 oszlop: sidebar + main */
.layout{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - 56px);
}

.sidebar{
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow: auto;
  border-right: 1px solid var(--border);
  background: var(--card);
}

.main{
  padding: 18px 16px 40px;
}

/* Topbar kicsit fixebb */
.topbar{
  height: 56px;
}

.topbar-inner{
  height: 56px;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap: 10px;
}

.icon-btn{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}

.icon-btn:active{ transform: translateY(1px); }

/* Overlay mobilon */
.sidebar-overlay{
  display:none;
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(15, 23, 42, .35);
  z-index: 40;
}

/* Sidebar mobilon offcanvas */
@media (max-width: 900px){
  .layout{
    grid-template-columns: 1fr;
  }
  .sidebar{
    position: fixed;
    top: 56px;
    left: 0;
    width: min(var(--sidebar-w), 88vw);
    height: calc(100vh - 56px);
    transform: translateX(-105%);
    transition: transform .18s ease;
    z-index: 50;
  }
  html.sidebar-open .sidebar{
    transform: translateX(0);
  }
  html.sidebar-open .sidebar-overlay{
    display:block;
  }
  .main{
    padding: 16px 14px 36px;
  }
}

/* Sidebar menü */
.sidebar-inner{
  padding: 14px;
}

.sidebar-title{
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 6px 0 10px;
  text-transform: uppercase;
}

.nav{
  display: grid;
  gap: 8px;
}

.nav a{
  text-decoration: none;
  color: inherit;
}

.nav-item{
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.nav-mod{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}

.nav-mod strong{
  font-size: 14px;
}

.chev{
  font-size: 12px;
  color: var(--muted);
}

.nav-lessons{
  display: none;
  border-top: 1px solid var(--border);
  background: #fbfdff;
}

.nav-lessons.open{
  display:block;
}

.nav-lesson{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 14px;
  border-top: 1px solid rgba(229,231,235,.6);
}

.nav-lesson:hover{
  background: #f3f7f9;
}

.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.dot-ok{
  background: var(--brand);
}

.badge{
  margin-left:auto;
  font-size: 12px;
  color: var(--muted);
}

.active-link{
  outline: 2px solid rgba(14,165,165,.30);
  outline-offset: -2px;
}


:root{
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;
  --brand: #0ea5a5;
  --sidebar-w: 290px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; }

.topbar{
  position: sticky;
  top: 0;
  z-index: 60;
  height: 56px;
  background: #e6eff1;
  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  height: 56px;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap: 10px;
}

.brand strong{ display:block; font-size: 16px; }
.brand span{ display:block; font-size: 12px; color: var(--muted); }

.topbar-right{
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
}

.btn{
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0);
}

.btn:active{ transform: translateY(1px); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.user{ color: var(--muted); font-size: 14px; }

.layout{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - 56px);
}

.sidebar{
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow: auto;
  border-right: 1px solid var(--border);
  background: var(--card);
}

.main{
  padding: 18px 16px 40px;
}

.sidebar-overlay{
  display:none;
  position: fixed;
  inset: 56px 0 0 0;
  background: rgba(15, 23, 42, .35);
  z-index: 40;
}

@media (max-width: 900px){
  .layout{ grid-template-columns: 1fr; }
  .sidebar{
    position: fixed;
    top: 56px;
    left: 0;
    width: min(var(--sidebar-w), 88vw);
    height: calc(100vh - 56px);
    transform: translateX(-105%);
    transition: transform .18s ease;
    z-index: 50;
  }
  html.sidebar-open .sidebar{ transform: translateX(0); }
  html.sidebar-open .sidebar-overlay{ display:block; }
  .main{ padding: 16px 14px 36px; }
}

.sidebar-inner{ padding: 14px; }

.sidebar-title{
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
  margin: 6px 0 10px;
  text-transform: uppercase;
}

.cards{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.card{
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.card h2{ margin: 0 0 6px; font-size: 18px; }
.card p{ margin: 0; color: var(--muted); }

.list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list-item{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.muted{ color: var(--muted); margin-top: 4px; }

.content-block{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-top: 14px;
}

.media-block{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin: 14px 0;
}

.bar{
  width:100%;
  height:10px;
  border-radius:999px;
  background:#eef2f6;
  overflow:hidden;
  border:1px solid var(--border);
}

.bar-fill{
  height:100%;
  background: var(--brand);
}

.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  color:var(--muted);
  margin-right:10px;
}

.pill-ok{
  border-color: rgba(14,165,165,.35);
  color: #0f766e;
}

/* Sidebar nav */
.nav{
  display: grid;
  gap: 8px;
}

.nav a{ text-decoration: none; color: inherit; }

.nav-item{
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.nav-mod{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
}

.nav-mod strong{ font-size: 14px; }

.chev{ font-size: 12px; color: var(--muted); }

.nav-lessons{
  display: none;
  border-top: 1px solid var(--border);
  background: #fbfdff;
}

.nav-lessons.open{ display:block; }

.nav-lesson{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 14px;
  border-top: 1px solid rgba(229,231,235,.6);
}

.nav-lesson:hover{ background: #f3f7f9; }

.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.dot-ok{ background: var(--brand); }

.badge{
  margin-left:auto;
  font-size: 12px;
  color: var(--muted);
}

.active-link{
  outline: 2px solid rgba(14,165,165,.30);
  outline-offset: -2px;
}


/* =========================
   Student UI – Visual refresh (append)
   ========================= */

/* Finomabb, modernebb szín- és árnyék rendszer */
:root{
  --brand: #0ea5a5;          /* megmarad (teal) */
  --brand2: #2563eb;         /* kék akcent */
  --bg: #f6f8fb;
  --card: rgba(255,255,255,.92);
  --border: rgba(15,23,42,.10);
  --text: #0f172a;
  --muted: rgba(15,23,42,.62);

  --shadow-sm: 0 6px 18px rgba(15,23,42,.06);
  --shadow-md: 0 14px 40px rgba(15,23,42,.10);

  --radius: 16px;
}

/* Háttér: levegős, finom gradient */
body{
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(14,165,165,.15), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(37,99,235,.14), transparent 50%),
    var(--bg);
  color: var(--text);
}

/* Topbar: enyhe gradient + blur (modern app feeling) */
.topbar{
  background: linear-gradient(90deg, rgba(14,165,165,.12), rgba(37,99,235,.10));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.topbar .brand strong{
  letter-spacing: .2px;
}
.topbar .brand span{
  color: var(--muted);
}

/* Sidebar: kicsit “kártyásabb” */
.sidebar{
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(10px);
}

.sidebar-title{
  color: rgba(15,23,42,.55);
}

/* Kártyák: árnyék + hover */
.card,
.content-block,
.media-block,
.list-item{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.card:hover,
.list-item:hover{
  transform: translateY(-2px);
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: var(--shadow-md);
}

/* Gombok: kapjanak igazi “primary” stílust */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14,165,165,.35);
  background: linear-gradient(135deg, rgba(14,165,165,.95), rgba(37,99,235,.85));
  color: #fff;
  text-decoration:none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(14,165,165,.18);
}

.btn:hover{ filter: brightness(1.03); }
.btn:active{ transform: translateY(1px); }

.btn-ghost{
  background: rgba(255,255,255,.85);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

/* Pills: legyenek színesebbek */
.pill{
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
}

.pill-ok{
  background: rgba(14,165,165,.10);
  border-color: rgba(14,165,165,.30);
  color: #0f766e;
}

/* Progress bar: gradient fill */
.bar{
  height: 12px;
  background: rgba(15,23,42,.06);
  border: 1px solid var(--border);
}
.bar-fill{
  background: linear-gradient(90deg, rgba(14,165,165,1), rgba(37,99,235,1));
}

/* Nav: modulfejlécek legyenek “tapinthatóbbak” */
.nav-mod{
  background: rgba(255,255,255,.95);
}
.nav-lesson:hover{
  background: rgba(37,99,235,.06);
}
.active-link{
  outline: 2px solid rgba(37,99,235,.25);
  outline-offset: -2px;
  background: rgba(37,99,235,.06);
}

/* Dashboard hero + stat kártyák (új osztályokhoz) */
.hero{
  padding: 18px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(900px 260px at 10% 0%, rgba(14,165,165,.20), transparent 55%),
    radial-gradient(900px 260px at 90% 0%, rgba(37,99,235,.18), transparent 50%),
    rgba(255,255,255,.82);
  box-shadow: var(--shadow-md);
}

.hero h1{
  margin: 0 0 6px 0;
  font-size: 26px;
}
.hero .sub{
  color: var(--muted);
  margin: 0;
}

.stat-cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 900px){
  .stat-cards{ grid-template-columns: 1fr; }
}

.stat-card{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

.stat-kpi{
  font-size: 22px;
  font-weight: 800;
  margin-top: 6px;
}
.stat-label{
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}


/* =========================
   Student UI – polish layer
   ========================= */

:root{
  --brand2: #2563eb;          /* másodlagos kék */
  --soft: rgba(15,23,42,0.06);
  --shadow2: 0 16px 36px rgba(15,23,42,0.10);
}

/* háttér: finom színátmenet */
body{
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(14,165,165,0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(37,99,235,0.10), transparent 60%),
    var(--bg);
}

/* topbar: “app header” érzet */
.topbar{
  background: linear-gradient(90deg, rgba(14,165,165,0.14), rgba(37,99,235,0.10));
  backdrop-filter: blur(6px);
}

/* kártyák: hover + árnyék + levegő */
.card,
.content-block,
.media-block,
.list-item{
  box-shadow: 0 8px 18px rgba(15,23,42,0.06);
}

.card:hover,
.list-item:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: rgba(14,165,165,0.28);
}

.card,
.list-item{
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

/* nav kártya ikon + cím sor */
.nav-card .card-head{
  display:flex;
  align-items:center;
  gap:10px;
}

.card-ic{
  width:36px;
  height:36px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(14,165,165,0.16), rgba(37,99,235,0.14));
  border: 1px solid rgba(15,23,42,0.08);
}

.card-ic i{
  font-size: 16px;
  color: rgba(15,23,42,0.78);
}



/* progress bar legyen “selymesebb” */
.bar{
  height: 12px;
  background: rgba(15,23,42,0.06);
}


/* pill: modernebb */
.pill{
  background: rgba(255,255,255,0.9);
}

/* sidebar modul header: picit élőbb */
.nav-mod{
  background: rgba(255,255,255,0.92);
}
.nav-mod:hover{
  background: rgba(14,165,165,0.06);
}

/* active lecke: markánsabb */
.active-link{
  outline: 2px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.06);
}

/* H1 legyen kicsit “app-like” */
h1{
  letter-spacing: -0.02em;
}


.card.primary {
  border: 2px solid rgba(14,165,165,0.35);
  background:
    linear-gradient(135deg, rgba(14,165,165,0.08), rgba(37,99,235,0.06));
}
.card.primary .btn {
  font-size: 16px;
  padding: 10px 18px;
}


.nav-mod.active {
  background: linear-gradient(
    135deg,
    rgba(14,165,165,0.18),
    rgba(37,99,235,0.12)
  );
  border-left: 4px solid var(--brand);
}



.demo-note{
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed rgba(0,0,0,0.25);
  border-radius: 10px;
  opacity: 0.9;
}
