/* assets/style.css - SOLID BRIGHT THEME (NO GRADIENT) */

/* ====== Warna utama (tegas) ====== */
:root{
  --bg: #f3f4f6;        /* background abu terang */
  --card: #ffffff;      /* putih */
  --border: #e5e7eb;    /* border */

  --text: #111827;      /* hitam */
  --muted: #6b7280;     /* abu teks */

  --primary: #2563eb;   /* biru */
  --purple:  #7c3aed;   /* ungu */
  --warning: #f59e0b;   /* oranye */
  --success: #16a34a;   /* hijau */
  --danger:  #ef4444;   /* merah */
}

/* ====== Global ====== */
*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.small-muted{ color: var(--muted); }

/* ====== Navbar ====== */
.navbar{
  background: #ffffff !important;
  border-bottom: 4px solid var(--primary);
}
.navbar .navbar-brand{
  color: var(--text) !important;
  font-weight: 800;
}

/* ====== Card ====== */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(17,24,39,.08);
}

/* ====== Form ====== */
.form-control, .form-select, textarea{
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
}

.form-control:focus, .form-select:focus, textarea:focus{
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 .22rem rgba(37,99,235,.22) !important;
  outline: none !important;
}

/* ====== Table ====== */
.table{
  color: var(--text);
}
.table thead th{
  color: var(--text);
  background: #f9fafb;
  border-bottom: 2px solid var(--border) !important;
}
.table td, .table th{
  border-color: var(--border) !important;
}

/* ====== Button ====== */
.btn{
  border-radius: 12px !important;
}

.btn-accent{
  background: var(--primary) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(37,99,235,.25);
}
.btn-accent:hover{
  filter: brightness(0.92);
}

.btn-outline-light{
  background: transparent !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 700;
}
.btn-outline-light:hover{
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* ====== Badge / Status ====== */
.badge{
  border-radius: 999px;
  padding: .45rem .7rem;
  font-weight: 800;
}

.text-bg-secondary{
  background: #6b7280 !important;
  color: #ffffff !important;
}
.text-bg-warning{
  background: var(--warning) !important;
  color: #111827 !important;
}
.text-bg-success{
  background: var(--success) !important;
  color: #ffffff !important;
}
.text-bg-dark{
  background: #111827 !important;
  color: #ffffff !important;
}

/* ====== Alert ====== */
.alert{
  border-radius: 14px;
  border: 1px solid var(--border);
}

/* =====================================================
   DASHBOARD STAT CARDS (SOLID COLOR - NO GRADIENT)
   HTML Anda: <div class="card p-3 stat-card stat-total"> ...
   ===================================================== */

/* Pastikan style ini mengalahkan style .card biasa */
.card.stat-card{
  border: none !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 18px rgba(17,24,39,.18) !important;
  color: #ffffff !important;
}

/* Label/angka */
.card.stat-card .stat-label{
  font-weight: 800;
  opacity: .95;
}
.card.stat-card .stat-number{
  font-weight: 900;
  font-size: 30px;
  line-height: 1.1;
}

/* Icon kotak */
.card.stat-card .stat-icon{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255,255,255,.22) !important;
}

/* Warna SOLID tegas */
.card.stat-total{
  background: var(--primary) !important;  /* biru */
}

.card.stat-menunggu{
  background: var(--purple) !important;   /* ungu */
}

.card.stat-proses{
  background: var(--warning) !important;  /* oranye */
  color: #111827 !important;              /* teks gelap biar kontras */
}
.card.stat-proses .stat-icon{
  background: rgba(17,24,39,.12) !important;
}

.card.stat-selesai{
  background: var(--success) !important;  /* hijau */
}
/* ===== Auth / Login Layout (center) ===== */
.auth-center{
  /* tinggi halaman dikurangi kira-kira tinggi navbar + footer */
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.auth-card{
  border-radius: 16px !important;
  overflow: hidden;
}

.auth-side{
  background: var(--primary); /* solid biru */
  color: #fff;
}

.auth-side .side-icon{
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.20);
  font-size: 30px;
}

.auth-side .side-list{
  margin: 0;
  padding-left: 1.1rem;
  opacity: .95;
}

.input-group-text{
  border-radius: 12px 0 0 12px !important;
  border-color: var(--border) !important;
  background: #ffffff !important;
}
.input-group .form-control{
  border-radius: 0 12px 12px 0 !important;
}
/* ===== Siswa Page Layout ===== */
.page-center{
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}

.split-card{
  border-radius: 16px !important;
  overflow: hidden;
}

.split-left{
  background: var(--primary);
  color: #fff;
}

.split-left .badge-mini{
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: rgba(255,255,255,.18);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  margin-right: 8px;
}

.history-item{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.history-meta{
  color: var(--muted);
  font-size: 12px;
}
