/* ============================================================
   PKB Care GTD Kota Bogor - Global Stylesheet
   ============================================================ */

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

/* --- CSS Variables --- */
:root {
  --green-50:  #f0fdf4;
  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --red-500:   #ef4444;
  --red-600:   #dc2626;
  --red-700:   #b91c1c;
  --yellow-400:#facc15;
  --yellow-500:#eab308;
  --blue-500:  #3b82f6;
  --blue-600:  #2563eb;
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-800:  #1f2937;
  --gray-900:  #111827;
  --white:     #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    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);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gray-900);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, textarea, select, button { font-family: inherit; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* --- Navbar --- */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--green-700);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.navbar-logo {
  width: 44px; height: 44px;
  background: var(--green-700);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.navbar-title { font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 1rem; color: var(--green-800); line-height: 1.2; }
.navbar-slogan { font-size: 0.7rem; color: var(--green-600); font-weight: 400; }
.navbar-nav { display: flex; align-items: center; gap: 0.25rem; }
.navbar-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  background: var(--green-50);
  color: var(--green-700);
}
.navbar-btn-wa {
  background: #25d366;
  color: white !important;
  border-radius: 50px !important;
  padding: 0.4rem 1rem !important;
  font-size: 0.8rem !important;
}
.navbar-btn-wa:hover { background: #128C7E !important; color: white !important; }

/* Hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.25rem;
  background: none;
  border: none;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}
@media (max-width: 768px) {
  .navbar-toggle { display: flex; }
  .navbar-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    align-items: stretch;
  }
  .navbar-nav.open { display: flex; }
  .navbar-nav a { padding: 0.6rem 1rem; }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 50%, var(--green-600) 100%);
  color: var(--white);
  padding: 5rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero p {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* Emergency Button */
.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red-600);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  border: 3px solid var(--red-500);
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 2rem;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
  animation: emergencyPulse 2s infinite;
  transition: var(--transition);
}
.btn-emergency:hover {
  background: var(--red-700);
  transform: scale(1.05);
  box-shadow: 0 0 0 0 rgba(239,68,68,0);
  animation: none;
}
@keyframes emergencyPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,0.7); }
  70%  { box-shadow: 0 0 0 15px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* Hero CTA buttons */
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn-primary:hover { background: var(--green-800); border-color: var(--green-800); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }
.btn-outline-green {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn-outline-green:hover { background: var(--green-700); color: var(--white); }
.btn-danger { background: var(--red-600); color: var(--white); border-color: var(--red-600); }
.btn-danger:hover { background: var(--red-700); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; border-radius: 50px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Section --- */
.section { padding: 4rem 0; }
.section-sm { padding: 2rem 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.5rem; }
.section-subtitle { color: var(--gray-500); font-size: 1rem; margin-bottom: 2.5rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.divider { width: 60px; height: 4px; background: var(--green-600); border-radius: 2px; margin: 0.75rem auto 0; }
.section-bg { background: var(--gray-50); }
.section-green { background: var(--green-700); color: var(--white); }
.section-green .section-title, .section-green h2 { color: var(--white); }
.section-green .section-subtitle { color: rgba(255,255,255,0.8); }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.card-body { padding: 1.5rem; }
.card-header { padding: 1rem 1.5rem; border-bottom: 1px solid var(--gray-200); font-weight: 600; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); background: var(--gray-50); }

/* Pilar Cards */
.pilar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}
.pilar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: block;
  color: inherit;
}
.pilar-card:hover, .pilar-card.active {
  border-color: var(--green-600);
  background: var(--green-50);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.pilar-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}
.pilar-title { font-family: 'Poppins',sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 0.4rem; color: var(--gray-900); }
.pilar-desc { font-size: 0.8rem; color: var(--gray-500); line-height: 1.5; }

/* --- Form --- */
.form-wrapper { max-width: 680px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--gray-700); margin-bottom: 0.4rem; }
.form-label .required { color: var(--red-600); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.error { border-color: var(--red-600); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.25em; padding-right: 2.5rem; }
.form-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.35rem; }
.form-error { font-size: 0.78rem; color: var(--red-600); margin-top: 0.35rem; display: none; }
.form-error.show { display: block; }

/* Urgency selector */
.urgency-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.urgency-option { display: none; }
.urgency-label {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}
.urgency-option:checked + .urgency-label {
  border-color: var(--green-600);
  background: var(--green-50);
}
.urgency-option.urgent-radio:checked + .urgency-label {
  border-color: var(--red-600);
  background: #fef2f2;
}
.urgency-icon { font-size: 1.5rem; }

/* Upload Area */
.upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-50);
}
.upload-area:hover { border-color: var(--green-600); background: var(--green-50); }
.upload-area input[type="file"] { display: none; }
.upload-preview { max-width: 200px; max-height: 150px; margin: 0.75rem auto 0; border-radius: var(--radius-sm); object-fit: cover; display: none; }

/* Checkbox */
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem; background: var(--yellow-400); background: #fffbeb; border: 2px solid var(--yellow-500); border-radius: var(--radius); cursor: pointer; }
.checkbox-group input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--red-600); cursor: pointer; }
.checkbox-group label { font-weight: 600; color: var(--gray-800); cursor: pointer; line-height: 1.4; }
.checkbox-group label small { display: block; font-weight: 400; color: var(--gray-600); margin-top: 0.2rem; }

/* --- Tracking --- */
.tracking-timeline { position: relative; padding-left: 2rem; }
.tracking-timeline::before { content: ''; position: absolute; left: 0.5rem; top: 0; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-item {
  position: relative;
  padding: 0.75rem 0 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.9rem;
  top: 1.1rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-300);
}
.timeline-item.active::before {
  background: var(--green-600);
  box-shadow: 0 0 0 2px var(--green-600);
  animation: timelinePulse 2s infinite;
}
.timeline-item.done::before { background: var(--green-700); box-shadow: 0 0 0 2px var(--green-700); }
.timeline-item.urgent::before { background: var(--red-600); box-shadow: 0 0 0 2px var(--red-600); }
@keyframes timelinePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.timeline-title { font-weight: 600; font-size: 0.9rem; color: var(--gray-800); }
.timeline-time  { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.15rem; }
.timeline-notes { font-size: 0.82rem; color: var(--gray-600); margin-top: 0.25rem; background: var(--gray-50); padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); border-left: 3px solid var(--green-500); }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-warning   { background: #fef3c7; color: #92400e; }
.badge-info      { background: #dbeafe; color: #1e40af; }
.badge-success   { background: #d1fae5; color: #065f46; }
.badge-danger    { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: var(--gray-100); color: var(--gray-700); }
.badge-urgent    { background: #fee2e2; color: var(--red-700); font-weight: 700; }

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--green-600);
}
.stat-number {
  font-family: 'Poppins',sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green-700);
  line-height: 1;
}
.stat-label { font-size: 0.82rem; color: var(--gray-500); margin-top: 0.35rem; font-weight: 500; }

/* --- Alert --- */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
  border-left: 4px solid transparent;
}
.alert-success { background: #d1fae5; color: #065f46; border-color: var(--green-600); }
.alert-danger  { background: #fee2e2; color: #991b1b; border-color: var(--red-600); }
.alert-info    { background: #dbeafe; color: #1e40af; border-color: var(--blue-500); }
.alert-warning { background: #fef3c7; color: #92400e; border-color: var(--yellow-500); }

/* --- Footer --- */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-brand p  { font-size: 0.85rem; line-height: 1.7; }
.footer-col h4   { color: var(--white); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul   { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.7); font-size: 0.85rem; text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* --- WhatsApp Float --- */
.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  animation: waPulse 3s infinite;
  transition: var(--transition);
}
.wa-float:hover { background: #128C7E; transform: scale(1.1); animation: none; }
@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.8); }
}

/* --- Layanan Grid --- */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.layanan-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.layanan-card:hover { border-color: var(--green-600); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.layanan-card-icon { font-size: 2rem; }
.layanan-card-title { font-family: 'Poppins',sans-serif; font-weight: 600; font-size: 1rem; }
.layanan-card-desc  { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; flex: 1; }
.layanan-card-badge { align-self: flex-start; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.text-green { color: var(--green-700); }
.text-red   { color: var(--red-600); }
.text-gray  { color: var(--gray-500); }
.text-sm    { font-size: 0.875rem; }
.text-xs    { font-size: 0.75rem; }
.fw-600     { font-weight: 600; }
.fw-700     { font-weight: 700; }
.rounded    { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.shadow     { box-shadow: var(--shadow); }
.shadow-lg  { box-shadow: var(--shadow-lg); }
.bg-white   { background: var(--white); }
.bg-light   { background: var(--gray-50); }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.w-100 { width: 100%; }

/* --- Responsive Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .section { padding: 2.5rem 0; }
  .urgency-selector { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Admin Layout --- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--green-900);
  color: var(--white);
  flex-shrink: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-brand {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.2);
}
.sidebar-brand h2 { font-size: 1.1rem; color: var(--white); margin-bottom: 0.25rem; }
.sidebar-brand p  { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.sidebar-nav { padding: 1rem 0; flex: 1; }
.sidebar-nav .nav-section {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--green-400); }
.sidebar-nav a.active { background: rgba(255,255,255,0.12); color: var(--white); border-color: var(--green-400); font-weight: 600; }
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.admin-main { margin-left: 260px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: var(--shadow-sm);
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; color: var(--gray-800); }
.admin-content { padding: 1.5rem; flex: 1; background: var(--gray-50); }

/* Admin Table */
.table-wrapper { overflow-x: auto; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  padding: 0.85rem 1rem;
  background: var(--gray-50);
  text-align: left;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
}
.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table .ticket-code { font-family: 'Courier New', monospace; font-weight: 700; color: var(--green-700); font-size: 0.82rem; }

/* Admin Stat Cards */
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.admin-stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.stat-green  { background: var(--green-100); }
.stat-yellow { background: #fef3c7; }
.stat-blue   { background: #dbeafe; }
.stat-red    { background: #fee2e2; }
.admin-stat-num  { font-family: 'Poppins',sans-serif; font-size: 1.75rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.admin-stat-text { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; margin-top: 0.2rem; }

/* Filter Bar */
.filter-bar {
  display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.filter-bar .form-control { width: auto; font-size: 0.85rem; padding: 0.5rem 0.85rem; }
.filter-bar .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; color: var(--gray-900); }
.modal-close { cursor: pointer; color: var(--gray-500); font-size: 1.5rem; background: none; border: none; padding: 0; line-height: 1; }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* Detail rows */
.detail-row { display: flex; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
.detail-row:last-child { border-bottom: none; }
.detail-key   { font-weight: 600; color: var(--gray-600); min-width: 150px; flex-shrink: 0; }
.detail-value { color: var(--gray-800); }

/* Loading spinner */
.spinner {
  width: 36px; height: 36px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { color: var(--gray-500); margin-bottom: 0.5rem; }

/* Pagination */
.pagination { display: flex; gap: 0.35rem; align-items: center; justify-content: center; padding: 1rem; }
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--green-700); color: var(--white); border-color: var(--green-700); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 768px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .sidebar-overlay.open { display: block; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .form-control, .filter-bar .btn { width: 100%; }
  .detail-row { flex-direction: column; gap: 0.25rem; }
  .detail-key { min-width: auto; }
}

/* Print */
@media print {
  .navbar, .footer, .wa-float, .btn, .admin-sidebar { display: none !important; }
}
