/* =====================================================
FILE: style.css
FINAL UNIFIED ENGINE UI
SIDEBAR CLEAN VERSION
===================================================== */

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:Arial, sans-serif;
}

body{
  background:#f3f4f6;
  color:#222;
}

/* =========================
APP LAYOUT
========================= */

.app{
  display:flex;
  width:100%;
  min-height:100vh;
}

/* =========================
SIDEBAR (FINAL FIXED)
========================= */

.sidebar{
  width:240px;
  flex-shrink:0;
  background:#111827;
  color:white;
  padding:60px 18px 18px;
  transition:width .25s ease;
  overflow:hidden;
}

/* ✅ INI YANG HILANG TADI */
.sidebar.collapsed{
  width:70px;
}

/* BUTTON */
.sidebar button{
  width:100%;
  border:none;
  background:transparent;
  color:white;
  text-align:left;
  padding:10px;
  border-radius:10px;
  cursor:pointer;
  margin-bottom:6px;
  transition:.2s;

  display:flex;
  align-items:center;
  gap:10px;
}

.sidebar button:hover{
  background:rgba(255,255,255,.1);
}

/* ICON */
.sb-icon{
  width:22px;
  text-align:center;
  font-size:18px;
  flex-shrink:0;
}

/* TEXT */
.sb-text{
  transition:.2s;
  white-space:nowrap;
}

/* COLLAPSE MODE */
.sidebar.collapsed .sb-text{
  display:none;
}

.sidebar.collapsed button{
  justify-content:center;
}

/* TOGGLE BUTTON */
.sidebar-toggle{
  position:fixed;
  top:12px;
  left:12px;
  z-index:999;
  border:none;
  background:#111827;
  color:white;
  padding:8px 12px;
  border-radius:8px;
  cursor:pointer;
}

/* =========================
MAIN CONTENT
========================= */

.main{
  flex:1;
  min-width:0;
  padding:20px;
}

/* =========================
TOOLBAR
========================= */

.page-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:12px;
}

.page-toolbar button{
  border:none;
  background:#0ea5e9;
  color:white;
  padding:8px 14px;
  border-radius:10px;
  cursor:pointer;
}

/* =========================
BREADCRUMB
========================= */

.breadcrumb{
  font-size:13px;
  color:#666;
  margin-bottom:14px;
}

/* =========================
CONTENT
========================= */

/* =========================
MODULE HEADER
========================= */

.kurikulum-header{
  background:linear-gradient(90deg,#0f766e,#10b981);
  color:white;
  padding:30px;
  border-radius:20px;
  margin-bottom:20px;
}

/* =========================
MODULE GRID
========================= */

.kurikulum-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.kurikulum-card{
  background:white;
  border-radius:20px;
  padding:22px;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
  cursor:pointer;
  transition:all .25s ease;
  border:2px solid transparent;
}
body.dark-mode .kurikulum-card{
  background:#1e293b;
  color:#f1f5f9;

  box-shadow:
    0 4px 10px rgba(0,0,0,.25),
    0 10px 25px rgba(0,0,0,.35);
}

.kurikulum-card:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 20px rgba(0,0,0,.12);
}

.kurikulum-card.active{
  border-color:#10b981;
  background:#f0fdf4;
}

/* ICON */
.kurikulum-card .icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  background:#ecfdf5;
  border-radius:12px;
  margin-bottom:12px;
}

.kurikulum-card h3{
  font-size:20px;
  margin-bottom:6px;
}

.kurikulum-card p{
  color:#6b7280;
  font-size:14px;
}

/* =========================
TABLE
========================= */

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,.table td{
  border:1px solid #ddd;
  padding:8px;
}
/* =========================
SIDEBAR ICON MODE
========================= */

.sidebar button{
  display:flex;
  align-items:center;
  gap:10px;
}

/* icon */
.sb-icon{
  width:22px;
  text-align:center;
  font-size:18px;
}

/* text */
.sb-text{
  transition:.2s;
}

/* COLLAPSE MODE → hide text */
.sidebar.collapsed .sb-text{
  display:none;
}

.sidebar.collapsed button{
  justify-content:center;
}
.sidebar{
  background:#111318;
}

/* icon style */
.sb-icon svg{
  width:20px;
  height:20px;
  color:#d1d5db;
}

/* hover premium */
.sidebar button:hover .sb-icon svg{
  color:white;
}

/* active look */
.sidebar button.active{
  background:#1f2430;
}
/* =========================
DASHBOARD PREMIUM UI
========================= */

.dash-hero{
  background:linear-gradient(135deg,#1e293b,#0f172a);
  color:white;
  padding:28px;
  border-radius:18px;
  margin-bottom:20px;
}

.dash-hero h1{
  font-size:28px;
  margin-bottom:4px;
}

.dash-hero p{
  opacity:.8;
}

/* ANNOUNCEMENT */
.dash-announcement{
  background:#fff7ed;
  border-left:4px solid #f97316;
  padding:16px 18px;
  border-radius:14px;
  margin-bottom:20px;
  font-weight:500;
}

/* STATS */
.dash-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-bottom:20px;
}

.stat-card{
  background:white;
  border-radius:16px;
  padding:18px;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}


.stat-card span{
  color:#6b7280;
  font-size:14px;
}

.stat-card h2{
  margin-top:6px;
  font-size:28px;
}

.program-item{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px solid #eee;
}

.program-item:last-child{
  border-bottom:none;
}
/* =========================
PREMIUM HERO (CANVA STYLE)
========================= */

.dash-hero{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#1e293b,#0f172a);
  color:white;
  padding:34px;
  border-radius:22px;
  margin-bottom:22px;
}

/* soft decorative shapes */
.hero-bg-circle{
  position:absolute;
  width:220px;
  height:220px;
  background:rgba(255,255,255,.08);
  border-radius:50%;
  top:-60px;
  right:-60px;
}

.hero-bg-circle2{
  position:absolute;
  width:140px;
  height:140px;
  background:rgba(255,255,255,.06);
  border-radius:50%;
  bottom:-40px;
  left:40%;
}

.hero-content{
  position:relative;
  z-index:2;
}

.dash-hero h1{
  font-size:30px;
  font-weight:700;
  margin-bottom:6px;
}

.dash-hero p{
  opacity:.8;
  font-size:14px;
}
.stat-card{
  background:white;
  border-radius:18px;
  padding:18px;
  box-shadow:
    0 4px 10px rgba(0,0,0,.05),
    0 10px 25px rgba(0,0,0,.04);
  transition:all .25s ease;
  
}

.stat-card:hover{
  transform:translateY(-4px);
}
.dash-program{
  background:white;
  border-radius:18px;
  padding:28x;
  box-shadow:0 4px 14px rgba(0,0,0,.05);

}
.stat-card{
  position:relative;
  overflow:hidden;
}
.stat-card{
  background:white;
  border-radius:18px;
  padding:18px;

  /* MAGIC */
  border-left:6px solid #38bdf8;

  box-shadow:
    0 4px 10px rgba(0,0,0,.05),
    0 10px 25px rgba(0,0,0,.04);

  transition:.25s;
 
}
/* =========================
STAT CARD PREMIUM COLORS
========================= */

.dash-stats .stat-card:nth-child(1){
  border-left-color:#114dc4; /* biru */
}

.dash-stats .stat-card:nth-child(2){
  border-left-color:#0a0647; /* hijau */
}

.dash-stats .stat-card:nth-child(3){
  border-left-color:#114dc4; /* amber */
}

.dash-stats .stat-card:nth-child(4){
  border-left-color:#0a0647; /* ungu */
}

/* =========================
VERTICAL TIMELINE PROGRAM
========================= */

.timeline{
  position:relative;
  margin-top:18px;
}

.timeline::before{
  content:"";
  position:absolute;
  left:25px;
  top:0;
  width:4px;
  height:100%;
  background:#e5e7eb;
}

.timeline-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
  position:relative;
}

/* DOT NUMBER */
.timeline{
  position:relative;
  margin-top:18px;
}

.timeline::before{
  content:"";
  position:absolute;
  left:25px;
  top:0;
  width:4px;
  height:100%;
  background:#e5e7eb;
}

.timeline-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
  position:relative;
}

/* DOT NUMBER */
.timeline-dot{
  width:50px;
  height:50px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-weight:700;
  font-size:20px;
  flex-shrink:0;
  z-index:2;
}

/* CONTENT BOX */
.timeline-content{
  display:flex;          /* ⭐ susunan tepi */
  align-items:center;
  gap:12px;

  background:white;
  padding:14px 16px;
  border-radius:14px;
  box-shadow:0 4px 10px rgba(0,0,0,.05);
  min-width:220px;

}
/* DATE BOX */
.timeline-date{
  padding:6px 14px;
  border-radius:999px;

  font-weight:700;
  font-size:14px;

  position:relative;
  z-index:2;
}

/* TITLE */
.timeline-title{
  font-size:18px;
  font-weight:600;
}

/* =========================
CORPORATE COLOR SYSTEM (NEW)
========================= */
/* ===== PREMIUM CORPORATE BLUE SYSTEM ===== */

.t1 .timeline-step{
  background:#1e3a8a;
}
.t1 .timeline-date{
  background:#dbeafe;
  color:#1e3a8a;
}

.t2 .timeline-step{
  background:#2563eb;
}
.t2 .timeline-date{
  background:#e0f2fe;
  color:#1d4ed8;
}

.t3 .timeline-step{
  background:#0ea5e9;
}
.t3 .timeline-date{
  background:#ecfeff;
  color:#0369a1;
}

.t4 .timeline-step{
  background:#0284c7;
}
.t4 .timeline-date{
  background:#f0f9ff;
  color:#075985;
}

.timeline-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:28px;
  height:28px;

  border-radius:10px;

  color:white;
  font-size:12px;
  font-weight:700;

  box-shadow:
    0 4px 10px rgba(0,0,0,.12);

  position:relative;
  z-index:2;
}
/*=====================
HYBRID EMBED MODULE
========================= */

.embed-page{
  width:100%;
}

.embed-header{
  margin-bottom:12px;
}

.embed-header h2{
  font-size:22px;
  font-weight:700;
}

/* BASE FRAME */
.embed-wrap{
  width:100%;
  min-height:70vh;
  background:white;
  padding:10px;
  border-radius:18px;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
  overflow:hidden;

}

.embed-wrap iframe{
  width:100%;
  height:100%;
  border:none;
  border-radius:12px;
}

/* =========================
SMART EMBED MODE
========================= */

/* LOOKER = NATIVE FEEL */
.embed-wrap.looker{
  padding:0;
  background:#fff;
  box-shadow:none;
}

/* GOOGLE FORM */
.embed-wrap.gform{
  padding:0;
  background:#f9fafb;
}

/* VIDEO */
.embed-wrap.video{
  height:60vh;
}

/* HYBRID MODE */
.embed-page.looker .embed-header{
  display:none;
}
.day-title{
  padding:10px;
  border-radius:10px;
  color:#fff;
}

.day-title:contains("Ahad"){background:#3b82f6;}
.day-title:contains("Isnin"){background:#16a34a;}
.day-title:contains("Selasa"){background:#f97316;}



.premium-grid td{
  border:1px solid #eee;
  height:60px;
}
.day-block{
  background:#fff;
  border-radius:16px;
  padding:14px;
  margin-bottom:18px;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.day-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.day-name{
  background:#2563eb;
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
  font-weight:600;
}

.day-date{
  background:#f1f5f9;
  padding:6px 12px;
  border-radius:8px;
  font-weight:600;
}

.premium-grid{
  width:100%;
  border-collapse:collapse;
}

.premium-grid th{
  background:#f8fafc;
}

.premium-grid td,
.premium-grid th{
  border:1px solid #eee;
  padding:8px;
}

.booking-cell{
  background:#dbeafe;
  border-radius:6px;
  font-size:12px;
  line-height:1.4;
}
.booking-cell.tahun4{
  background:#dbeafe;
}

.booking-cell.tahun5{
  background:#dcfce7;
}

.booking-cell.tahun6{
  background:#ffedd5;
}

.see-more-wrap{
  text-align:center;
  margin-top:12px;
}

#seeMoreBtn{
  padding:8px 16px;
  border:none;
  border-radius:8px;
  background:#2563eb;
  color:white;
  cursor:pointer;
}


.premium-grid th{
  background:#1e293b;
  color:white;
  font-weight:600;
  padding:10px;
  border-right:1px solid rgba(255,255,255,.2);
}

.premium-grid td{
  border-right:1px solid #e5e7eb;
  border-top:1px solid #f1f5f9;
  padding:8px;
  transition:.2s;
}

.premium-grid td:hover{
  background:#f8fafc;
}
.premium-grid th{
  font-weight:600;
  letter-spacing:0.3px;
  text-transform:none;
}
/* ===== DASHBOARD SIDE BY SIDE FIX ===== */

.dash-row{
  display:grid;
  grid-template-columns: 60% 40%;
  gap:18px;
  align-items:start; /* penting */
}


/* responsive phone */
@media(max-width:900px){
  .dash-row{
    grid-template-columns:1fr;
  }
}
.mini-bilik-card{
  background:#fff;
  border-radius:16px;
  padding:18px;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
}/* ===== MINI BILIK PREMIUM ===== */

.mini-bilik-card{
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.mini-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
}

.mini-header h3{
  margin:0;
  font-size:18px;
  font-weight:700;
}

.mini-header span{
  font-size:13px;
  color:#2563eb;
  cursor:pointer;
  font-weight:600;
}

.mini-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mini-item{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:12px;
  transition:.2s;
  cursor:pointer;
}

.mini-item:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}

.mini-top{
  display:flex;
  justify-content:space-between;
  font-size:14px;
}

.mini-date{
  font-size:12px;
  color:#64748b;
}

.mini-time{
  margin-top:6px;
  font-size:13px;
  font-weight:600;
  color:#0f172a;
}

.mini-bottom{
  margin-top:5px;
  font-size:13px;
  color:#334155;
}



/* bulatan gradient lembut */
.dash-program::before,
.mini-bilik-card::before{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    rgba(59,130,246,0.08),
    rgba(59,130,246,0)
  );
  top:-60px;
  right:-60px;
  pointer-events:none;
}

/* second decorative blob */
.dash-program::after,
.mini-bilik-card::after{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    rgba(14,165,233,0.08),
    rgba(14,165,233,0)
  );
  bottom:-50px;
  left:-50px;
  pointer-events:none;
}
.dash-program > *,
.mini-bilik-card > *{
  position:relative;
  z-index:2;
}

/* ===== CANVA STYLE DECOR ===== */

#content .dash-program,
#content .mini-bilik-card{
  position:relative !important;
  overflow:hidden !important;
}

/* blob atas */
#content .dash-program::before,
#content .mini-bilik-card::before{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    rgba(59,130,246,.08),
    rgba(59,130,246,0)
  );
  top:-60px;
  right:-60px;
  pointer-events:none;
}

/* blob bawah */
#content .dash-program::after,
#content .mini-bilik-card::after{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    rgba(14,165,233,.08),
    rgba(14,165,233,0)
  );
  bottom:-50px;
  left:-50px;
  pointer-events:none;
}

/* content atas decoration */
#content .dash-program > *,
#content .mini-bilik-card > *{
  position:relative;
  z-index:2;
}

/* mobile */
@media(max-width:900px){
  #content .dash-row{
    grid-template-columns:1fr !important;
  }
}
/* ===================================================
DASHBOARD LAYOUT CLEAN (FINAL)
=================================================== */

.dash-row{
  display:grid;
  grid-template-columns:60% 40%;
  gap:18px;

  align-items:start;   /* ⭐ INI FIX SEBENAR */
}
/* dua panel sama besar */
.dash-program,
#mini-bilik-wrap{
  height:100%;
}

/* =========================
CANVA STYLE DECORATION
========================= */

.dash-program,
.mini-bilik-card{
  position:relative;
  overflow:hidden;
}

/* blob atas */
.dash-program::before,
.mini-bilik-card::before{
  content:"";
  position:absolute;
  width:220px;
  height:220px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    rgba(59,130,246,.08),
    rgba(59,130,246,0)
  );
  top:-60px;
  right:-60px;
}

/* blob bawah */
.dash-program::after,
.mini-bilik-card::after{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  border-radius:50%;
  background:linear-gradient(
    135deg,
    rgba(14,165,233,.08),
    rgba(14,165,233,0)
  );
  bottom:-50px;
  left:-50px;
}

/* content sentiasa atas */
.dash-program > *,
.mini-bilik-card > *{
  position:relative;
  z-index:2;
}

/* ===== MOBILE ===== */
@media(max-width:900px){
  .dash-row{
    grid-template-columns:1fr;
  }
}
/* ===== SMART RIGHT PANEL ===== */



.mini-insight h4{
  margin:0 0 8px;
  font-size:14px;
}

.mini-insight p{
  margin:0 0 10px;
  font-size:13px;
  color:#334155;
}

.mini-insight button{
  width:100%;
  border:none;
  background:#2563eb;
  color:white;
  padding:8px;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
}

.mini-insight button:hover{
  background:#1d4ed8;
}
/* ===== ENTERPRISE DEPTH SYSTEM ===== */

.content,
.stat-card,
.dash-program,
.mini-bilik-card,
.timeline-content{
  box-shadow:
    0 2px 6px rgba(15,23,42,.04),
    0 8px 22px rgba(15,23,42,.05);
}/* BIG section spacing */
.dash-hero{
  margin-bottom:24px;
}

.dash-announcement{
  margin-bottom:24px;
}

.dash-stats{
  margin-bottom:24px;
}

.timeline-content{
  transition:.25s;
}

.timeline-content:hover{
  transform:translateY(-2px);
}
.timeline-content{
  min-width:280px;
}
/* ===================================================
FINAL VISUAL PATCH (ANTI OVERRIDE)
=================================================== */

#content .stat-card,
#content .dash-program,
#content .mini-bilik-card,
#content .timeline-content{
  box-shadow:
    0 2px 6px rgba(15,23,42,.04),
    0 8px 22px rgba(15,23,42,.05) !important;
}

/* spacing hierarchy */
#content .dash-hero{
  margin-bottom:24px !important;
}

#content .dash-announcement{
  margin-bottom:24px !important;
}

#content .dash-stats{
  margin-bottom:24px !important;
}

/* ===================================================
FINAL VISUAL SYSTEM (IMMORTAL CLEAN LAYER)
JANGAN DUPLICATE STYLE ATAS
=================================================== */
/* ===== FINAL DASHBOARD LOOK ===== */



/* unified shadow */
#content .stat-card,
#content .dash-program,
#content .mini-bilik-card,
#content .timeline-content{
  box-shadow:
    0 2px 6px rgba(15,23,42,.04),
    0 8px 22px rgba(15,23,42,.05);
}

/* spacing hierarchy */
#content .dash-hero{ margin-bottom:24px; }
#content .dash-announcement{ margin-bottom:24px; }
#content .dash-stats{ margin-bottom:24px; }

/* premium background */
body{ background:#eef2f7; }

.content{
  background:transparent;
  border-radius:16px;
  padding:20px;
  min-height:400px;
}

/* ======================================
HORIZONTAL PREMIUM TIMELINE
====================================== */

.timeline-horizontal{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding-bottom:8px;
  margin-top:16px;
}
/* scrollbar premium */
.timeline-horizontal::-webkit-scrollbar{
  height:8px;
}

.timeline-horizontal::-webkit-scrollbar-track{
  background:#1e293b;
  border-radius:10px;
}

.timeline-horizontal::-webkit-scrollbar-thumb{
  background:#475569;
  border-radius:10px;
}

/* setiap blok */
.timeline-box{
  min-width:260px;
  flex-shrink:0;
}

.timeline-top{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

/* line connect */
.timeline-top::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:14px;
  height:2px;

  background:linear-gradient(
    to right,
    #dbeafe,
    #e2e8f0
  );
  z-index:0;
}

.timeline-top::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:14px;
  height:1px;

  background:linear-gradient(
    to right,
    #e2e8f0,
    #f1f5f9
  );
}

/* TARIKH */
.timeline-date{
  display:inline-block;
  padding:6px 12px;
  border-radius:10px;
  background:#2563eb;
  color:#fff;
  font-size:13px;
  font-weight:700;
  position:relative;
  z-index:2;
}

/* CARD */
.timeline-card{
  background:white;
  border-radius:14px;
  padding:14px;

  box-shadow:
    0 2px 6px rgba(15,23,42,.04),
    0 10px 24px rgba(15,23,42,.06);

  transition:.25s;

}

.timeline-card:hover{
  transform:translateY(-3px);
}

/* TAJUK */
.timeline-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:6px;
}

/* NOTA */
.timeline-note{
  font-size:13px;
  color:#64748b;
  line-height:1.4;
}
/* =====================================
PREMIUM DARK MODE
===================================== */

body.dark-mode{
  background:#0b1220;
  color:#e5e7eb;
}

/* main content */
body.dark-mode .content{
  background:#111827;
}

/* cards */
body.dark-mode .stat-card,
body.dark-mode .dash-program,
body.dark-mode .mini-bilik-card,
body.dark-mode .timeline-card{
  background:#1f2937;
  color:#f1f5f9;
  border:1px solid rgba(255,255,255,.06);
}

/* sidebar */
body.dark-mode .sidebar{
  background:#020617;
}

/* announcement */
body.dark-mode .dash-announcement{
  background:#1e293b;
  border-left-color:#f59e0b;
  color:#f8fafc;
}

/* timeline line */
body.dark-mode .timeline-top::after{
  background:linear-gradient(
    to right,
    #334155,
    #1e293b
  );
}

/* mini items */
body.dark-mode .mini-item{
  background:#0f172a;
  border-color:#334155;
}

/* table */
body.dark-mode .premium-grid{
  background:#0f172a;
}

body.dark-mode .premium-grid th{
  background:#1e293b;
}
/* ===== TOOLBAR ALIGN RIGHT ===== */

.page-toolbar{
  display:flex;
  justify-content:flex-end; /* tolak ke kanan */
  align-items:center;
  margin-bottom:8px;
}

/* bagi button nampak kemas */
.dark-toggle{
  margin-left:auto;
}

/* =====================================
DARK MODE FIX — FINAL PATCH
===================================== */

/* background utama */
body.dark-mode{
  background:#0b1220;
  color:#e5e7eb;
}

/* content panel */
body.dark-mode .content{
  background:#111827;
}

/* MODULE HEADER (Pentadbiran hijau) */
body.dark-mode .kurikulum-header{
  filter:brightness(.85);
}

/* MODULE CARDS */
body.dark-mode .kurikulum-card{
  background:#1f2937 !important;
  border-color:rgba(255,255,255,.06);
  color:#f1f5f9;
}

/* TEXT DALAM CARD */
body.dark-mode .kurikulum-card h3{
  color:#f8fafc !important;
}

body.dark-mode .kurikulum-card p{
  color:#94a3b8 !important;
}

/* ICON BOX */
body.dark-mode .kurikulum-card .icon{
  background:#0f172a;
}

/* ADMIN TOGGLE TEXT */
body.dark-mode .breadcrumb{
  color:#cbd5e1;
}

/* semua card dashboard */
body.dark-mode .stat-card,
body.dark-mode .dash-program,
body.dark-mode .mini-bilik-card,
body.dark-mode .timeline-content{
  background:#1f2937 !important;
  color:#f8fafc;
}

/* announcement */
body.dark-mode .dash-announcement{
  background:#1e293b;
  color:#f8fafc;
}

/* sidebar */
body.dark-mode .sidebar{
  background:#020617;
}
/* =====  BACKGROUND FIX ===== */

body.dark-mode{
  background:#0b1220;
}

/* layer utama app */
body.dark-mode .app{
  background:#0b1220;
}

/* main area */
body.dark-mode .main{
  background:#0f172a;
}

/* content panel */
body.dark-mode .content{
  background:#111827;
}
/* ===== DARK MODE REAL BACKGROUND FIX ===== */

body.dark-mode .main{
  background:#0f172a !important;
}

body.dark-mode .content{
  background:#111827 !important;

}body.dark-mode .kurikulum-card{
  background:#1e293b !important;
  color:#f1f5f9 !important;
}
.dash-mini{
  margin-top:18px;
}
.sheet-link{
  margin-left:12px;
  font-size:13px;
  text-decoration:none;
  padding:6px 10px;
  background:#0ea5e9;
  color:#fff;
  border-radius:8px;
}

.sheet-link:hover{
  opacity:0.9;
}
.embed-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.bc-link{
  cursor:pointer;
  color:#2563eb;
}

.bc-link:hover{
  text-decoration:underline;
}.olahraga-dashboard{
  padding:20px;
}

.olahraga-grid{
  display:grid;
  gap:15px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}

.olahraga-dashboard .card{
  background:#0f2745;
  color:white;
  border-radius:14px;
  padding:16px;
  box-shadow:0 6px 18px rgba(0,0,0,.2);
}