/* ===== SIGAP Main Stylesheet ===== */

:root {
  --primary: #D32F2F;
  --primary-dark: #B71C1C;
  --primary-light: #FFEBEE;
  --accent: #FF5252;
  --text: #1a1a2e;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
}
.navbar.scrolled .nav-brand { color: var(--text); }

.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}
.navbar.scrolled .nav-link { color: var(--text-light); }
.nav-link:hover { background: rgba(255,255,255,0.15); color: white; }
.navbar.scrolled .nav-link:hover { background: var(--bg); color: var(--primary); }

.btn-primary, .nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary:hover, .nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(211,47,47,0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a0a0a 0%, #2d1010 30%, #1a1a2e 100%);
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(211,47,47,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211,47,47,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(211,47,47,0.6), transparent);
  top: -200px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,82,82,0.4), transparent);
  bottom: -100px; left: -100px;
  animation-delay: 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: white;
  line-height: 1.0;
  letter-spacing: 2px;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title br + * { color: var(--accent); }

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.2s ease both;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(211,47,47,0.4);
}
.btn-hero-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(211,47,47,0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.4);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s ease both;
}

.hero-stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: white;
  letter-spacing: 1px;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.15);
}

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollDrop 2s ease infinite;
}
@keyframes scrollDrop {
  0% { top: -100%; }
  100% { top: 200%; }
}

/* ===== SECTIONS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-header.light .section-tag {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 2px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-header.light .section-title { color: white; }
.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.step-card {
  flex: 1;
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--border);
  position: relative;
  transition: var(--transition);
  animation: fadeUp 0.6s var(--delay) ease both;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.step-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.step-icon {
  width: 56px; height: 56px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}
.step-card:hover .step-icon {
  background: var(--primary);
  color: white;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.step-card p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  color: var(--primary);
  opacity: 0.4;
  flex-shrink: 0;
  margin-top: 60px;
}

/* ===== STATS ===== */
.stats-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark), #1a1a2e);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.25);
}
.stat-emoji { font-size: 2rem; }
.stat-info { display: flex; flex-direction: column; gap: 4px; }
.stat-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  color: white;
  letter-spacing: 1px;
  line-height: 1;
}
.stat-type {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
  font-weight: 500;
}
.stat-empty {
  color: rgba(255,255,255,0.5);
  font-style: italic;
  text-align: center;
  padding: 40px;
  grid-column: 1 / -1;
}

/* ===== CTA ===== */
.cta-section { padding: 80px 0; background: var(--bg); }
.cta-card {
  background: linear-gradient(135deg, var(--primary), #FF1744);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}
.cta-content { position: relative; }
.cta-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
}
.btn-cta-primary {
  background: white;
  color: var(--primary);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-cta-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.footer {
  background: #0f0f1a;
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 320px;
}
.footer-links h4, .footer-contact h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 0;
  transition: var(--transition);
}
.footer-links a:hover { color: white; padding-left: 6px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  padding: 8px 0;
}
.contact-item svg { flex-shrink: 0; opacity: 0.7; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ===== FORM PAGE ===== */
.form-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 80px;
}
.form-hero {
  background: linear-gradient(135deg, var(--primary-dark), #1a1a2e);
  padding: 60px 0 40px;
  text-align: center;
}
.form-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: white;
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.form-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; }

.form-container {
  max-width: 860px;
  margin: -20px auto 60px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-body { padding: 48px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}
.form-group label span { color: var(--primary); }

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(211,47,47,0.08);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control {
  min-height: 120px;
  resize: vertical;
}
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}

.file-upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  position: relative;
}
.file-upload-area:hover, .file-upload-area.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}
.file-upload-area input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 12px;
}
.file-upload-area p { color: var(--text-muted); font-size: 0.9rem; }
.file-upload-area strong { color: var(--text); font-size: 0.95rem; display: block; margin-bottom: 4px; }

.gps-group {
  position: relative;
}
.gps-group .form-control { padding-right: 48px; }
.btn-gps {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.btn-gps:hover { background: var(--primary-dark); }
.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--primary-light);
}

.btn-submit {
  width: 100%;
  padding: 17px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(211,47,47,0.4);
}
.btn-submit:active { transform: translateY(0); }

/* ===== ALERTS ===== */
.alert {
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }
.alert-warning { background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; }

/* ===== STATUS BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-baru { background: #eff6ff; color: #1e40af; }
.badge-diproses { background: #fffbeb; color: #92400e; }
.badge-selesai { background: #f0fdf4; color: #166534; }
.badge-ditolak { background: #fef2f2; color: #991b1b; }

/* ===== ADMIN LAYOUT ===== */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px;
  background: #0f0f1a;
  color: white;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.sidebar-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: white;
}
.sidebar-subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 12px;
}

.nav-section-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  padding: 12px 8px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.08);
  color: white;
}
.sidebar-link.active {
  background: var(--primary);
  color: white;
}
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.user-avatar {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}
.user-name { font-size: 0.88rem; font-weight: 600; color: white; }
.user-role { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  justify-content: center;
}
.btn-logout:hover { background: rgba(211,47,47,0.3); color: white; }

.admin-main {
  flex: 1;
  margin-left: 260px;
  background: var(--bg);
  min-height: 100vh;
}

.admin-topbar {
  background: white;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-title { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.topbar-breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-content { padding: 32px; }

/* ===== ADMIN CARDS ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition);
}
.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.dash-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dash-icon.red { background: #fef2f2; color: var(--primary); }
.dash-icon.blue { background: #eff6ff; color: #2563eb; }
.dash-icon.green { background: #f0fdf4; color: #16a34a; }
.dash-icon.orange { background: #fff7ed; color: #ea580c; }
.dash-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--text);
  letter-spacing: 1px;
}
.dash-label { font-size: 0.82rem; color: var(--text-light); font-weight: 500; }

/* ===== TABLE ===== */
.table-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.table-title { font-weight: 700; font-size: 1rem; color: var(--text); }

.table-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: white;
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--primary); }

.search-input {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  width: 220px;
}
.search-input:focus { border-color: var(--primary); }

table {
  width: 100%;
  border-collapse: collapse;
}
th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg); }

.btn-sm {
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
}
.btn-view { background: #eff6ff; color: #2563eb; }
.btn-view:hover { background: #2563eb; color: white; }
.btn-edit { background: #f0fdf4; color: #16a34a; }
.btn-edit:hover { background: #16a34a; color: white; }
.btn-delete { background: #fef2f2; color: var(--primary); }
.btn-delete:hover { background: var(--primary); color: white; }
.btn-danger { background: var(--primary); color: white; }
.btn-danger:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-save { background: var(--primary); color: white; padding: 12px 28px; font-size: 0.95rem; border-radius: 10px; }
.btn-save:hover { background: var(--primary-dark); }

/* ===== SETTINGS ===== */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.settings-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-card-icon {
  width: 40px; height: 40px;
  background: var(--primary-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.settings-card-title { font-weight: 700; font-size: 0.95rem; }
.settings-card-body { padding: 24px; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0a0a 50%, #1a1a2e 100%);
  position: relative;
  padding: 20px;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(211,47,47,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211,47,47,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.login-card {
  width: 100%;
  max-width: 440px;
  background: white;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4);
  position: relative;
  z-index: 1;
}
.login-header { text-align: center; margin-bottom: 36px; }
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.login-logo span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--text);
}
.login-header h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== PREVIEW FOTO ===== */
#fotoPreview {
  margin-top: 12px;
  display: none;
}
#fotoPreview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.page-link {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.page-link:hover, .page-link.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== PRINT STYLES ===== */
.laporan-detail { max-width: 860px; margin: 0 auto; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,15,26,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 999;
  }
  .nav-menu.open { display: flex; }
  .nav-link { font-size: 1.2rem; color: white !important; }
  .nav-toggle { display: flex; z-index: 1000; position: relative; }
  .navbar.scrolled .nav-toggle span { background: var(--text); }

  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); width: 100%; justify-content: center; margin: 0; }

  .form-row { grid-template-columns: 1fr; }
  .form-body { padding: 28px 24px; }

  .cta-card { flex-direction: column; text-align: center; padding: 40px 32px; }
  .cta-actions { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .admin-sidebar { transform: translateX(-100%); transition: var(--transition); }
  .admin-sidebar.open { transform: none; }
  .admin-main { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .admin-content { padding: 20px; }

  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }

  .table-header { flex-direction: column; align-items: flex-start; }
  .table-filters { width: 100%; }
  .search-input { width: 100%; }
}

@media (max-width: 480px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .login-card { padding: 32px 24px; }
}
