:root{
  /* Mediawize basis */
  --bg: #f6faf7;
  --card: rgba(255,255,255,.88);
  --text:#0f172a;
  --muted:#475569;

  --border: rgba(15, 23, 42, .10);
  --border2: rgba(15, 23, 42, .14);

  /* Accent */
  --accent:#22c55e;
  --accent2:#86efac;

  /* Mediawize groen donker */
  --sidebar: #0b2f1f;        /* donkergroen, niet blauw */
  --sidebar-2: #082517;      /* iets dieper voor gradient */
  --sidebar-text: #eafaf1;

  /* Extra */
  --shadow: 0 14px 40px rgba(2, 6, 23, .08);
  --radius: 18px;
}

h1{
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 12px;
}

p{
  max-width: 72ch;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 20% 0%, #dff5e8 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 10%, #e9f8ef 0%, transparent 55%),
    #f6faf7;
  color:var(--text);
}

.app{
  display:flex;
  min-height:100vh;
  background: transparent;
}

/* ---------- Topbar (mobile) ---------- */
.topbar{
  display:none;
  position:sticky;
  top:0;
  z-index:20;
  height:56px;
  background:var(--sidebar);
  color:var(--sidebar-text);
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  gap:10px;
}

.topbar-title{
  font-weight:800;
  font-size:16px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topbar-right{ display:flex; align-items:center; gap:10px; }

.topbar-link{
  color:var(--sidebar-text);
  text-decoration:none;
  font-weight:700;
  padding:8px 10px;
  border-radius:12px;
  background:rgba(255,255,255,0.08);
}

/* ---------- Sidebar ---------- */
.sidebar{
  width:280px;
  background:
    linear-gradient(180deg,
      var(--sidebar) 0%,
      var(--sidebar-2) 100%
    );
  color:var(--sidebar-text);
  padding:18px;
  display:flex;
  flex-direction:column;
}



.logo{
  display:flex;
  gap:12px;
  margin-bottom:24px;
}
.logo img{
  width:150px; height:50px;
  border-radius:12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
}
.logo-title{ font-weight:800; }
.logo-sub{ font-size:12px; color:#94a3b8; }

.nav a{
  display:block;
  padding:12px;
  margin-bottom:6px;
  border-radius:12px;
  text-decoration:none;
  color:var(--sidebar-text);
  font-weight:600;
}
.nav a.active{
  background: rgba(134,239,172,.22); /* accent2 */
  color:#0b2f1f;
}

.nav a:hover{
  background: rgba(255,255,255,.10);
}

.sidebar-footer{
  margin-top:auto;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,0.12);
}
.sidebar-footer-title{ font-weight:800; }
.sidebar-footer-sub{ color:#94a3b8; font-size:12px; margin-top:4px; }

/* ---------- Content ---------- */
.content{
  flex:1;
  padding:24px;
  width:100%;
}

.card{
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding:24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}


@media (max-width: 900px){
  .card{
    max-width: 100%;
    padding: 16px;
    border-radius: 16px;
  }
  .content{
    padding: 14px;
  }
}

/* ---------- Forms ---------- */
h1{ margin-top:0; }
p.lead{ color:var(--muted); }

label{
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  display:block;
  margin-top:12px;
}

input[type="text"], input[type="email"], input[type="password"], textarea, select, input[type="file"]{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  margin-top:6px;
  font-size:16px;
  background: rgba(255,255,255,.85);
  color: var(--text);
}

button{
  margin-top:14px;
  background:var(--accent);
  color:white;
  border:none;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
  font-size:16px;
}

.row{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
@media (max-width: 900px){
  .row{ grid-template-columns: 1fr; }
}

.section{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--border);
}

/* ---------- Result area ---------- */
.result-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:20px;
  margin-bottom:10px;
  gap:12px;
}

.code-area textarea{
  height: calc(100vh - 360px);
  min-height:320px;
  max-height:900px;
  background:#0b1120;
  color:#e5e7eb;
  font-family:monospace;
  font-size:12px;
  border-radius:14px;
  padding:14px;
  white-space:pre;
}

@media (max-width:900px){
  .code-area textarea{
    height: 420px;
    min-height: 280px;
  }
}

.btn-copy{
  background:#1e293b;
  padding:10px 14px;
}

/* ---------- Mobile sidebar behavior ---------- */
.overlay{ display:none; }

.icon-btn{
  border:0;
  background:rgba(255,255,255,0.10);
  color:var(--sidebar-text);
  font-size:18px;
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
}

@media (max-width: 900px){
  .topbar{ display:flex; }
  .app{ display:block; }

  .sidebar{
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    z-index:30;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    width: 86vw;
    max-width: 320px;
  }

  .overlay{
    position:fixed;
    inset:0;
    background: rgba(0,0,0,0.35);
    z-index:25;
    display:none;
  }

  body.sidebar-open .sidebar{
    transform: translateX(0);
  }
  body.sidebar-open .overlay{
    display:block;
  }

  .content{
    padding-top: 14px;
  }
}
/* ---------- Home / tiles ---------- */

.hero h1{
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 8px 0;
}

.hero p{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.tile-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 900px){
  .tile-grid{
    grid-template-columns: 1fr;
  }
}

.tile{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}

.tile:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(2, 6, 23, .12);
}

.tile *{
  color: inherit;
  text-decoration: none;
}

.tile-title{
  font-weight:900;
  font-size:18px;
  margin:0;
}

.tile-desc{
  margin:0;
  color: var(--muted);
  font-size:14px;
  line-height:1.5;
}

.tile-actions{
  margin-top: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-secondary{
  background: #1e293b;
}

.btn-link{
  display: inline-block;
  text-decoration: none;
}

/* ---------- Landing page ---------- */
.landing-hero{
  padding: 8px 0 6px 0;
}

.landing-hero h1{
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 10px 0;
}

.landing-hero p{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 70ch;
}

.cta-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 16px;
}

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.module-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

@media (max-width: 900px){
  .landing-hero h1{ font-size: 28px; }
  .module-grid{ grid-template-columns: 1fr; }
}

.module-card{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.module-title{
  font-weight: 900;
  font-size: 16px;
  margin: 0;
}

.module-desc{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #e5e7eb;
  font-size:12px;
  font-weight:800;
  color:#1e293b;
  width: fit-content;
}

.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-top: 16px;
}

@media (max-width: 900px){
  .split{ grid-template-columns: 1fr; }
}

.note{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.note h3{
  margin: 0 0 8px 0;
}

.note p{
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   Public layout (landing/login/signup)
   ========================================================= */

.pub-header{
  background: #0f172a;
  color: #e5e7eb;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.pub-header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.pub-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 180px;
}

.pub-logo{
  width:44px;
  height:44px;
  border-radius:12px;
  background:#fff;
  object-fit:contain;
}

.pub-title{
  font-weight:900;
  font-size:16px;
  line-height:1.1;
}

.pub-subtitle{
  font-size:12px;
  color:#94a3b8;
}

.pub-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pub-nav a{
  color:#e5e7eb;
  text-decoration:none;
  font-weight:800;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,0.08);
}

.pub-nav a.active{
  background: rgba(34,197,94,0.25);
}

.pub-main{
  min-height: calc(100vh - 64px - 54px);
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 18px 12px;
}

.pub-container{
  width:100%;
  max-width: 1100px;
}

.pub-footer{
  background: #0b1220;
  color:#94a3b8;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pub-footer-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  gap:10px;
  align-items:center;
}

.pub-footer-dot{ opacity:0.5; }

/* Landing blocks */
.pub-hero{
  background:#ffffff;
  border:1px solid var(--border);
  border-radius:18px;
  padding: 18px;
}

.pub-hero h1{
  margin:0 0 8px 0;
  font-size: 34px;
  line-height: 1.05;
}

.pub-hero p{
  margin:0;
  color: var(--muted);
  max-width: 75ch;
}

.pub-cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

.pub-modules{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 900px){
  .pub-header-inner{ align-items:flex-start; flex-direction:column; }
  .pub-nav{ justify-content:flex-start; }
  .pub-hero h1{ font-size: 28px; }
  .pub-modules{ grid-template-columns: 1fr; }
}

.pub-module{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding: 16px;
}

.pub-module h3{
  margin:0 0 6px 0;
  font-size: 16px;
}

.pub-module p{
  margin:0;
  color: var(--muted);
}

.tile-icon{
  width:56px;
  height:56px;
  object-fit:contain;
  margin-bottom:12px;
}
.alert{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.8);
  margin-bottom:10px;
}
.alert.success{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12); }
.alert.error{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.12); }

.school-row{
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(255,255,255,.65);
}
.school-logo{
  width:46px;
  height:46px;
  border-radius:12px;
  background:#fff;
  object-fit:contain;
  border:1px solid var(--border);
  padding:6px;
}

.school-logo.placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:900;
  color: var(--muted);
}
.btn-danger{
  background:#ef4444;
}

