@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Premium Color Palette */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #0ea5e9;
  
  /* Neutral / Surface Colors */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #1e293b;
  --bg-header: #ffffff;
  
  /* Borders */
  --border-light: #e2e8f0;
  --border-mid: #cbd5e1;
  --border-dark: #94a3b8;
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Transition */
  --transition: all 0.2s ease-in-out;
}

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

body { 
  background: var(--bg-main); 
  font-family: 'Inter', sans-serif; 
  font-size: 14px; 
  color: var(--text-main); 
  line-height: 1.5;
}

h1, h2, h3, h4, h5, h6, .poppins { font-family: 'Poppins', sans-serif; }

/* ── NAV BAR (Publik) ── */
.navbar {
  background: var(--bg-header);
  padding: 15px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand .logo {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  font-family: 'Poppins', sans-serif;
}

.nav-brand .title {
  font-weight: 700; font-size: 16px; color: var(--text-main); font-family: 'Poppins', sans-serif;
}
.nav-brand .subtitle {
  font-size: 12px; color: var(--text-muted);
}

.nav-links {
  display: flex; gap: 20px;
  list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-weight: 500; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex; gap: 10px;
}

/* ── BUTTONS ── */
.btn {
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--text-white); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-mid); }
.btn-outline:hover { background: var(--bg-main); border-color: var(--text-main); }

.btn-block { width: 100%; padding: 12px; font-weight: 600; font-size: 15px; }

/* ── LAYOUT DASHBOARD ── */
.dashboard-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px;
  background: var(--bg-sidebar);
  color: var(--text-white);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header .title { font-weight: 700; font-size: 16px; font-family: 'Poppins', sans-serif; }
.sidebar-header .subtitle { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.sidebar-menu {
  list-style: none; padding: 15px 0; flex: 1;
}
.sidebar-menu li a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  color: var(--text-light); text-decoration: none; font-weight: 500; transition: var(--transition);
}
.sidebar-menu li a:hover, .sidebar-menu li a.active {
  background: rgba(255,255,255,0.05); color: var(--text-white);
  border-left: 3px solid var(--primary);
}

.main-content {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}

.topbar {
  background: var(--bg-header); padding: 15px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.topbar .page-title { font-size: 18px; font-weight: 600; font-family: 'Poppins', sans-serif; }

.content-wrapper { padding: 24px; flex: 1; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 600; font-size: 16px; font-family: 'Poppins', sans-serif;
  display: flex; justify-content: space-between; align-items: center;
}
.card-body { padding: 20px; }

/* ── FORMS ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text-main); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-mid); border-radius: 6px;
  font-family: 'Inter', sans-serif; font-size: 14px;
  transition: var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

/* ── TABLES ── */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  background: var(--bg-main); padding: 12px 16px;
  text-align: left; font-weight: 600; color: var(--text-muted);
  border-bottom: 2px solid var(--border-light);
}
.table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-light); color: var(--text-main);
}
.table tr:hover td { background: var(--bg-main); }

/* ── BADGES ── */
.badge {
  padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; display: inline-block;
}
.badge-success { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-primary { background: rgba(79, 70, 229, 0.1); color: var(--primary); }

/* ── STATS CARDS ── */
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 24px; }
.stat-card {
  background: var(--bg-card); padding: 20px; border-radius: 10px;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.stat-card .label { font-size: 13px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; }
.stat-card .value { font-size: 28px; font-weight: 700; color: var(--text-main); margin: 8px 0; font-family: 'Poppins', sans-serif; }
.stat-card .desc { font-size: 12px; color: var(--text-light); }

/* ── LOGIN PAGE ── */
.auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-main); padding: 20px;
}
.auth-box {
  background: var(--bg-card); width: 100%; max-width: 420px;
  border-radius: 12px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.auth-header {
  padding: 30px 20px 20px; text-align: center; border-bottom: 1px solid var(--border-light);
}
.auth-header .logo {
  width: 60px; height: 60px; background: var(--primary); color: var(--text-white);
  border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; margin-bottom: 12px;
}
.auth-header h2 { font-size: 20px; color: var(--text-main); margin-bottom: 4px; }
.auth-header p { font-size: 13px; color: var(--text-muted); }
.auth-body { padding: 30px; }
.auth-footer { padding: 15px; text-align: center; background: var(--bg-main); font-size: 13px; border-top: 1px solid var(--border-light); }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ── ALERT ── */
.alert {
  padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px;
  display: flex; align-items: center; gap: 10px;
}
.alert-info { background: rgba(59, 130, 246, 0.1); color: var(--info); border: 1px solid rgba(59, 130, 246, 0.2); }
.alert-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--bg-sidebar) 0%, #0f172a 100%);
  color: var(--text-white);
  padding: 80px 20px; text-align: center; border-radius: 16px; margin-bottom: 30px;
}
.hero h1 { font-size: 36px; margin-bottom: 12px; }
.hero p { font-size: 16px; color: var(--text-light); margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── STEPS ── */
.stepper { display: flex; align-items: center; margin-bottom: 30px; overflow-x: auto; }
.step-item {
  flex: 1; text-align: center; padding: 12px 10px; position: relative;
  font-weight: 600; font-size: 13px; color: var(--text-muted);
  border-bottom: 3px solid var(--border-light);
}
.step-item.active { color: var(--primary); border-bottom-color: var(--primary); }
