:root{
  --bg:#f6f9ff;
  --surface:#ffffff;
  --line:#e6eef7;
  --text:#0f172a;
  --muted:#64748b;

  --primary:#2563eb;
  --primary-dark:#1e40af;
  --success:#16a34a;

  --radius:18px;
  --shadow:0 18px 45px rgba(15,23,42,.10);
  --shadow-soft:0 8px 22px rgba(15,23,42,.08);

  --font:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(37,99,235,.10), transparent 60%),
    #f6f9ff;

  display:flex;
  flex-direction:column;
}

/* ===== HEADER (DARKER THAN HERO) ===== */
.topbar{
  background: linear-gradient(
    180deg,
    #09037b,   /* lebih tua */
    #09037b
  );
  color:#fff;
  box-shadow:
    0 6px 20px rgba(0,0,0,.22),
    inset 0 -1px 0 rgba(255,255,255,.08); /* garis pemisah halus */
}

.topbar-inner{
  max-width:1120px;
  margin:auto;
  padding:14px 16px; /* sedikit lebih ramping */
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand-title{
  font-weight:900;
  letter-spacing:.4px;
}

.brand-sub{
  font-size:12px;
  opacity:.8;
}
.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  padding:8px 12px;
  border-radius:999px;
  transition:.18s ease;
}

.nav a:hover{
  background:rgba(255,255,255,.22);
}

/* ===== MAIN ===== */
.main{ flex:1; }

/* ===== HERO (COMPACT & CLEAN) ===== */
.hero{
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;

  /* DIPENDEKIN */
  padding:48px 0 56px;

  border-radius:0 0 36px 36px;
  position:relative;
  overflow:hidden;
}

.hero-inner{
  max-width:1120px;
  margin:auto;
  padding:0 16px;
  text-align:center;
}

.hero h1{
  font-size:32px;   /* sebelumnya 36 */
  margin-bottom:10px;
}

.hero p{
  max-width:680px;
  margin:0 auto;
  font-size:15px;
  opacity:.92;
}

.hero-badges{
  margin-top:16px;  /* sebelumnya 20+ */
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
}

/* floating icons */
.hero-icons span{
  position:absolute;
  font-size:26px;
  opacity:.25;
  animation: float 6s ease-in-out infinite;
}
.hero-icons span:nth-child(1){ top:20%; left:12%; }
.hero-icons span:nth-child(2){ top:35%; right:15%; animation-delay:1s; }
.hero-icons span:nth-child(3){ bottom:18%; left:50%; animation-delay:2s; }

/* ===== CONTAINER ===== */
.container{
  max-width:1120px;
  margin:auto;
  padding:32px 16px 48px;
}

/* ===== GRID & CARD ===== */
.grid{ display:grid; gap:18px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
@media(max-width:980px){ .grid-3{ grid-template-columns:1fr; } }

.card{
  background:var(--surface);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid var(--line);
  transition:.25s;
}
.card:hover{
  transform:translateY(-8px) scale(1.01);
  box-shadow:0 28px 60px rgba(0,0,0,.18);
}
.card .pad{ padding:28px; text-align:center; }

.card-siswa{ border-top:6px solid var(--primary); }
.card-guru{ border-top:6px solid var(--success); }
.card-admin{ border-top:6px solid #64748b; }

.role-icon{ font-size:42px; margin-bottom:10px; }

/* ===== BUTTON ===== */
.btn{
  display:block;
  padding:12px;
  border-radius:14px;
  font-weight:900;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(90deg,var(--primary),#60a5fa);
  box-shadow:var(--shadow-soft);
}
.btn.secondary{
  background:linear-gradient(90deg,var(--success),#34d399);
}
.btn.ghost{
  background:#fff;
  color:var(--text);
  border:2px dashed var(--line);
  box-shadow:none;
}

/* ===== BADGE ===== */
.badge{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  background:rgba(255,255,255,.18);
  color:#fff;
}

/* ===== FOOTER ===== */
.footer{
  border-top:1px solid var(--line);
  background:#fff;
}
.footer-inner{
  max-width:1120px;
  margin:auto;
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  font-size:12px;
  color:var(--muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp{
  from{ opacity:0; transform:translateY(20px); }
  to{ opacity:1; transform:none; }
}
@keyframes float{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-14px); }
}

.animate-fade-up{
  animation:fadeUp .7s ease both;
}
.delay-1{ animation-delay:.15s; }
.delay-2{ animation-delay:.3s; }
.delay-3{ animation-delay:.45s; }

/* ===============================
   ADMIN LOGIN — ENTERPRISE STYLE
   =============================== */

   .admin-login-wrap {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(1200px 600px at 10% -10%, #1e3a8a22, transparent),
      radial-gradient(800px 400px at 90% 110%, #0ea5e922, transparent),
      linear-gradient(180deg, #f8fbff, #eef3f9);
  }
  
  .admin-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 34px 30px;
    box-shadow:
      0 20px 40px rgba(15, 23, 42, 0.12),
      0 4px 10px rgba(15, 23, 42, 0.05);
    animation: adminPop 0.6s ease-out both;
  }
  
  @keyframes adminPop {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  
  .admin-login-header {
    text-align: center;
    margin-bottom: 26px;
  }
  
  .admin-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    box-shadow: 0 10px 20px rgba(37,99,235,.35);
  }
  
  .admin-login-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .3px;
    margin: 6px 0 4px;
  }
  
  .admin-login-header p {
    font-size: .92rem;
    color: #64748b;
  }
  
  .admin-alert {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 16px;
  }
  
  .admin-login-form .field {
    margin-bottom: 16px;
  }
  
  .admin-login-form label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #475569;
    margin-bottom: 6px;
  }
  
  .admin-login-form input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: .95rem;
    transition: all .2s ease;
  }
  
  .admin-login-form input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15);
  }
  
  .btn-admin-login {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    margin-top: 6px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    letter-spacing: .3px;
    box-shadow: 0 10px 20px rgba(37,99,235,.35);
    transition: all .25s ease;
  }
  
  .btn-admin-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37,99,235,.45);
  }
  
  .btn-admin-login:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(37,99,235,.3);
  }
  
  .admin-login-footer {
    text-align: center;
    margin-top: 22px;
    font-size: .75rem;
    color: #64748b;
  }
  
  .admin-login-footer span {
    font-size: .7rem;
    color: #94a3b8;
  }
  
  /* ===============================
   GURU LOGIN — ACADEMIC STYLE
   =============================== */

.guru-login-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1000px 500px at 90% -10%, #16a34a22, transparent),
    radial-gradient(700px 400px at 10% 110%, #22c55e22, transparent),
    linear-gradient(180deg, #f7fbf9, #eef6f0);
}

.guru-login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px 34px 30px;
  box-shadow:
    0 18px 36px rgba(15, 23, 42, 0.1),
    0 4px 10px rgba(15, 23, 42, 0.05);
  animation: guruPop 0.6s ease-out both;
}

@keyframes guruPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.guru-login-header {
  text-align: center;
  margin-bottom: 26px;
}

.guru-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 10px 20px rgba(22,163,74,.35);
}

.guru-login-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .3px;
  margin: 6px 0 4px;
}

.guru-login-header p {
  font-size: .92rem;
  color: #64748b;
}

.guru-alert {
  background: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .9rem;
  margin-bottom: 16px;
}

.guru-login-form .field {
  margin-bottom: 16px;
}

.guru-login-form label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #475569;
  margin-bottom: 6px;
}

.guru-login-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: .95rem;
  transition: all .2s ease;
}

.guru-login-form input:focus {
  outline: none;
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}

.btn-guru-login {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: none;
  margin-top: 6px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  letter-spacing: .3px;
  box-shadow: 0 10px 20px rgba(22,163,74,.35);
  transition: all .25s ease;
}

.btn-guru-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22,163,74,.45);
}

.btn-guru-login:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(22,163,74,.3);
}

.guru-login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: .75rem;
  color: #64748b;
}

.guru-login-footer span {
  font-size: .7rem;
  color: #94a3b8;
}

/* ===============================
   SISWA LOGIN — STUDENT STYLE
   =============================== */

   .student-login-wrap {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(1000px 500px at 10% -10%, #6366f122, transparent),
      radial-gradient(700px 400px at 90% 110%, #38bdf822, transparent),
      linear-gradient(180deg, #f8faff, #eef2ff);
  }
  
  .student-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 32px 34px 30px;
    box-shadow:
      0 18px 36px rgba(15, 23, 42, 0.1),
      0 4px 10px rgba(15, 23, 42, 0.05);
    animation: studentPop 0.6s ease-out both;
  }
  
  @keyframes studentPop {
    from {
      opacity: 0;
      transform: translateY(18px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  
  .student-login-header {
    text-align: center;
    margin-bottom: 26px;
  }
  
  .student-badge {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    color: #fff;
    box-shadow: 0 10px 20px rgba(99,102,241,.35);
  }
  
  .student-login-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: .3px;
    margin: 6px 0 4px;
  }
  
  .student-login-header p {
    font-size: .92rem;
    color: #64748b;
  }
  
  .student-alert {
    background: #e0e7ff;
    color: #1e3a8a;
    border-left: 4px solid #6366f1;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: .9rem;
    margin-bottom: 16px;
  }
  
  .student-login-form .field {
    margin-bottom: 16px;
  }
  
  .student-login-form label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #475569;
    margin-bottom: 6px;
  }
  
  .student-login-form input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: .95rem;
    transition: all .2s ease;
  }
  
  .student-login-form input:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  }
  
  .btn-student-login {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    margin-top: 6px;
    background: linear-gradient(135deg, #6366f1, #38bdf8);
    color: #fff;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    letter-spacing: .3px;
    box-shadow: 0 10px 20px rgba(99,102,241,.35);
    transition: all .25s ease;
  }
  
  .btn-student-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(99,102,241,.45);
  }
  
  .btn-student-login:active {
    transform: translateY(0);
    box-shadow: 0 8px 16px rgba(99,102,241,.3);
  }
  
  .student-login-footer {
    text-align: center;
    margin-top: 22px;
    font-size: .75rem;
    color: #64748b;
  }
  
  .student-login-footer span {
    font-size: .7rem;
    color: #94a3b8;
  }
  /* ===============================
   ADMIN DASHBOARD — PREMIUM LOOK
   =============================== */

body {
  background: linear-gradient(180deg, #f4f7fb, #eef2f7);
}

/* ===== STAT CARDS ===== */
.big-number {
  font-size: 2.6rem;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: .5px;
}

.card {
  border-radius: 18px;
  box-shadow:
    0 20px 40px rgba(15,23,42,.08),
    0 4px 10px rgba(15,23,42,.05);
  border: 1px solid rgba(255,255,255,.6);
}

.card .h2 {
  font-weight: 600;
  font-size: 1rem;
  color: #475569;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 18px;
  color: #0f172a;
}

/* ===== QUICK ACTION GRID ===== */
.admin-actions {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
}

.admin-actions .section-title {
  color: #fff;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.action-card {
  border-radius: 16px;
  padding: 18px 16px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: all .25s ease;
}

.action-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,.25),
    rgba(255,255,255,0)
  );
  opacity: 0;
  transition: .25s;
}

.action-card:hover::after {
  opacity: 1;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}

.action-card .icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.action-card .title {
  font-weight: 700;
  font-size: .95rem;
}

.action-card .desc {
  font-size: .78rem;
  opacity: .85;
  margin-top: 2px;
}

/* ===== COLOR VARIANTS ===== */
.action-card.blue {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.action-card.green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.action-card.gray {
  background: linear-gradient(135deg, #475569, #64748b);
}

.action-card.red {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* ===== ADMIN INFO TABLE ===== */
.table.simple td {
  padding: 8px 4px;
  font-size: .9rem;
}

.table.simple td:first-child {
  color: #64748b;
}

/* ===== LOGOUT BUTTON ===== */
.btn.secondary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-weight: 600;
  border-radius: 14px;
  height: 46px;
}
