/* ============================================================
   base.css
   ============================================================ */

/* ============================================================
   PTPN 1 MONITORING SYSTEM — style.css
   Design: Clean Corporate, Dark-green dominant, Premium
   ============================================================ */

:root {
  --green-900: #0d2b1e;
  --green-800: #164430;
  --green-700: #1a5c3e;
  --green-600: #1e7a50;
  --green-500: #22a366;
  --green-400: #34c97e;
  --green-300: #6edfa8;
  --green-100: #d6f5e7;

  --amber:     #f59e0b;
  --amber-lt:  #fef3c7;
  --red:       #ef4444;
  --red-lt:    #fee2e2;
  --blue:      #3b82f6;
  --blue-lt:   #dbeafe;
  --purple:    #8b5cf6;

  --bg-base:   #f0f4f2;
  --bg-card:   #ffffff;
  --bg-card2:  #f8faf9;
  --sidebar-w: 240px;
  --topbar-h:  64px;

  --text-900: #0f1f17;
  --text-700: #2d4a3a;
  --text-500: #5a7a6a;
  --text-300: #9ab8a8;
  --border:   #dde8e2;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(0,40,20,.07);
  --shadow-md: 0 4px 20px rgba(0,40,20,.10);
  --shadow-lg: 0 10px 40px rgba(0,40,20,.14);

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Fraunces', serif;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-base);
  color: var(--text-900);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

/* ======================== SIDEBAR ========================== */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: linear-gradient(180deg, #1a5c3e 0%, #0d2b1e 100%);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transition: transform .3s ease;
}

.sidebar {
  transition: width .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  background: linear-gradient(180deg, #1a5c3e 0%, #0d2b1e 100%); /* ← tambah ini */
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--green-500), var(--green-400));
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.logo-text strong { display:block; font-size:15px; color:#030303; font-weight:700; }
.logo-text small { font-size:10px; color:rgba(6, 6, 6, 0.55); letter-spacing:.05em; text-transform:uppercase; }
.sidebar-nav {
  flex: 1;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s;
}
.nav-item svg { width:18px; height:18px; flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.8; }
.nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, var(--green-700), var(--green-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,163,102,.25);
}

.sidebar-footer {
  padding: 16px 14px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.user-badge {
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--green-600);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.user-badge strong { display:block; font-size:12.5px; color:#fff; }
.user-badge small { font-size:10px; color:rgba(255,255,255,0.55); }


