/* App CSS — Light + Blue theme ala Tailwind-ish di atas Bootstrap */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* Light surface + blue accents */
  --bg: #f4f7ff;             /* body background */
  --text: #0f172a;           /* slate-900 */
  --muted: #64748b;          /* slate-500 */
  --brand: #2563eb;          /* blue-600 */
  --brand-2: #60a5fa;        /* blue-400 */
  --brand-3: #1e40af;        /* blue-800 */
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #16a34a;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, .10);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji','Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
  background:
    radial-gradient(900px 450px at 30% -10%, rgba(96,165,250,.25) 0%, rgba(96,165,250,0) 60%),
    var(--bg);
  color: var(--text);
}

/* Header */
.app-header{
  position: sticky; top:0; z-index: 1030;
  backdrop-filter: saturate(160%) blur(10px);
  background: linear-gradient(180deg, rgba(37,99,235,.90), rgba(37,99,235,.75));
  border-bottom: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.app-header .brand{
  display:flex; align-items:center; gap:.6rem; font-weight:800; letter-spacing:.2px; color:#fff;
}
.app-header .brand .logo{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, var(--brand-2), #ffffff);
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
}

/* Layout (sidebar biru, konten putih) */
.app-shell{display:grid; grid-template-columns: 260px 1fr; min-height:calc(100vh - 64px)}
@media (max-width: 991px){ .app-shell{grid-template-columns: 1fr} }

.sidebar{
  position: sticky; top:64px; height: calc(100vh - 64px);
  padding: 18px; overflow:auto;
  background: linear-gradient(180deg, #1e3a8a, #2563eb);
  border-right: 1px solid rgba(255,255,255,.25);
  color:#edf2ff;
}
.sidebar .menu-title{font-size:.78rem; color:#c7d2fe; text-transform:uppercase; margin:14px 10px 6px}
.sidebar .menu{ display:flex; flex-direction:column; gap:6px; }
.menu a{
  display:flex; align-items:center; gap:.65rem;
  padding:10px 12px; border-radius: 12px;
  color:#ffffff; text-decoration:none; transition: all .18s ease;
  border:1px solid transparent; background: transparent;
}
.menu a .i{width:20px; text-align:center; opacity:.95}
.menu a:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12) }
.menu a.active{ background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.45) }

/* Main content: putih bersih */
main{ background: transparent; }
.tw-card{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}
.tw-card .tw-card-body{ padding: 18px; color: var(--text); }
.tw-card .tw-card-title{ font-weight:700; letter-spacing:.2px; color:#0f172a }

/* Buttons (biru) */
.btn{
  border-radius: 12px !important; font-weight:600 !important; padding:.55rem .9rem !important;
  border:1px solid rgba(30,64,175,.14) !important; transition: all .2s ease;
}
.btn-primary{
  background: linear-gradient(135deg, var(--brand), #3b82f6) !important; border-color: transparent !important;
  box-shadow: 0 8px 20px rgba(37,99,235,.25);
}
.btn-outline-primary{
  color: var(--brand) !important; border-color: rgba(37,99,235,.6) !important;
}
.btn:hover{ transform: translateY(-1px); }

/* Forms (terang) */
.form-control, .form-select{
  background: #ffffff; color: var(--text); border-radius: 12px; border:1px solid #e5e7eb;
}
.form-control:focus, .form-select:focus{
  border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(147,197,253,.45);
}

/* Tables (terang) */
.table{
  color:#0f172a;
  --bs-table-bg: #ffffff;
  --bs-table-striped-bg: #f8fafc;
  --bs-table-hover-bg: #f1f5f9;
  border-color: #e5e7eb;
  border-radius: 14px; overflow:hidden;
}

/* Footer */
.app-footer{
  border-top:1px solid #e5e7eb;
  background: #ffffff;
  padding: 18px; color: var(--muted);
}

/* Utilities */
.rounded-2xl{ border-radius: var(--radius-xl) !important; }
.shadow-soft{ box-shadow: var(--shadow-soft) !important; }
.text-muted-2{ color: var(--muted) }
.kbd{ padding:2px 6px; border:1px solid #e2e8f0; border-bottom-width:2px; border-radius:8px; font-weight:700; font-size:.8rem }

/* Mobile bottom bar */
.bottom-bar{
  position: fixed; bottom:0; left:0; right:0; z-index:1020;
  display:none; gap:8px; padding:10px; justify-content:space-around;
  background: rgba(241,245,249,.9); backdrop-filter: blur(8px);
  border-top:1px solid #e5e7eb;
}
@media (max-width: 991px){ .bottom-bar{ display:flex } .sidebar{ display:none } }

/* ===== Auth page (Login Centered Blue) ===== */
.auth-viewport{
  min-height: calc(100vh - 64px); /* di bawah header */
  display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(96,165,250,.25) 0%, rgba(96,165,250,0) 60%),
    transparent;
  padding: 24px;
}
.auth-card{
  width: 100%; max-width: 440px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}
.auth-card .head{
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color:#fff; padding:18px 20px; font-weight:700;
}
.auth-card .body{ padding: 18px; }
