
/* ===== LOGIN PAGE STYLES ===== */
.login-body {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: #fff; /* Clean white background for login */
}

.login-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  text-align: center;
}

.login-brand {
  margin-bottom: 30px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 15px;
}

.login-title { font-size: 24px; font-weight: 700; margin: 0 0 8px; }
.login-subtitle { color: var(--text-muted); font-size: 15px; margin: 0 0 30px; }

.form-group { margin-bottom: 20px; text-align: left; }

.input-field {
  width: 100%;
  padding: 16px;
  background: #F5F5F7; /* Apple-style input bg */
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-main);
  transition: all 0.2s;
}

.input-field:focus {
  background: #fff;
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-hover); }

.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: left;
}

/*=========================*/

:root {
  /* Colors */
  --primary: #007AFF;
  --bg-app: #F5F7FA;
  --bg-card: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #9CA3AF;
  
  /* Gradients for Icons */
  --grad-orange: linear-gradient(135deg, #FF9F43 0%, #FF6B6B 100%);
  --grad-blue: linear-gradient(135deg, #4834d4 0%, #686de0 100%);
  --grad-green: linear-gradient(135deg, #2ecc71 0%, #26de81 100%);

  /* Spacing (Compact) */
  --gap-md: 16px;    /* Jarak antar kartu lebih rapat */
  --p-card: 18px;    /* Padding dalam kartu */
  --radius: 14px;    /* Sudut membulat */
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
  font-size: 14px; /* Base font size sedikit lebih kecil agar compact */
}

/* NAVBAR COMPACT */
.navbar {
  background: var(--bg-card);
  padding: 10px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid #E5E7EB;
  position: sticky; top: 0; z-index: 50;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-text { font-weight: 700; font-size: 16px; letter-spacing: -0.5px; }
.brand-icon { 
  width: 32px; height: 32px; 
  background: var(--text-main); color: #fff; 
  border-radius: 8px; display: grid; place-items: center; 
}
.brand-icon i { width: 18px; height: 18px; }

.nav-right { display: flex; align-items: center; gap: 16px; }
.status-pill { 
  font-size: 12px; font-weight: 600; color: #10B981; 
  background: #D1FAE5; padding: 4px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
}
.dot-pulse { width: 6px; height: 6px; background: #10B981; border-radius: 50%; animation: pulse 1.5s infinite; }
.btn-logout { color: #EF4444; transition: 0.2s; }
.btn-logout:hover { transform: scale(1.1); }

/* MAIN LAYOUT */
.container { max-width: 1280px; margin: 0 auto; padding: 20px; }

.page-header { 
  display: flex; justify-content: space-between; align-items: center; 
  margin-bottom: 16px; 
}
.page-title { font-size: 18px; font-weight: 700; }
.page-subtitle { font-size: 13px; color: var(--text-muted); }
.last-sync { font-size: 12px; color: var(--text-muted); display: flex; gap: 5px; align-items: center; }

/* BENTO GRID (Compact Layout) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

/* CARDS COMMON */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: var(--p-card);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* STAT CARDS (Horizontal Layout) */
.stat-card { display: flex; align-items: center; gap: 16px; position: relative; overflow: hidden; }

/* Interesting Icons */
.icon-box {
  width: 48px; height: 48px;
  border-radius: 12px; /* Squircle */
  display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.icon-box i { width: 22px; height: 22px; }

.gradient-orange { background: var(--grad-orange); }
.gradient-blue { background: var(--grad-blue); }
.gradient-green { background: var(--grad-green); }

.stat-content { flex: 1; }
.stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value-row { display: flex; align-items: baseline; gap: 2px; margin-top: 2px; }
.stat-num { font-size: 24px; font-weight: 800; color: var(--text-main); line-height: 1; }
.stat-unit { font-size: 13px; font-weight: 600; color: var(--text-muted); }

.stat-indicator { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 2px; }
.text-orange { color: #FF9F43; } .text-blue { color: #4834d4; } .text-muted { color: var(--text-muted); }

/* CHARTS SECTION */
.main-chart { grid-column: span 2; display: flex; flex-direction: column; }
.side-chart { grid-column: span 1; display: flex; flex-direction: column; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-header h3 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.btn-sm { font-size: 11px; padding: 4px 10px; border-radius: 6px; border: 1px solid #E5E7EB; background: #fff; cursor: pointer; }

.chart-wrapper { position: relative; flex: 1; min-height: 220px; width: 100%; }
.chart-wrapper.small { min-height: 160px; max-height: 180px; margin-bottom: 10px; }

/* LOGS */
.mini-logs { border-top: 1px solid #F3F4F6; padding-top: 12px; margin-top: auto; }
.log-row { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.warning { background: #FF9F43; } .dot.success { background: #10B981; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
  .main-chart, .side-chart { grid-column: span 1; }
  .stat-card { padding: 20px; }
}

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }