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

:root {
  --primary: #1B4965;
  --primary-light: #2D6A8F;
  --primary-dark: #0D2E42;
  --accent: #BEE9E8;
  --accent-gold: #D4A843;
  --success: #28A745;
  --warning: #FFC107;
  --danger: #DC3545;
  --info: #17A2B8;
  --bg: #F5F7FA;
  --bg-card: #FFFFFF;
  --text: #2D3748;
  --text-light: #718096;
  --border: #E2E8F0;
  --shadow: 0 2px 12px rgba(27, 73, 101, .08);
  --shadow-lg: 0 8px 30px rgba(27, 73, 101, .12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition)
}

a:hover {
  color: var(--primary-light)
}

img {
  max-width: 100%;
  height: auto
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow)
}

.btn-primary {
  background: var(--primary);
  color: #fff
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #fff
}

.btn-secondary {
  background: var(--border);
  color: var(--text)
}

.btn-secondary:hover {
  background: #CBD5E0
}

.btn-success {
  background: var(--success);
  color: #fff
}

.btn-danger {
  background: var(--danger);
  color: #fff
}

.btn-warning {
  background: var(--warning);
  color: #333
}

.btn-info {
  background: var(--info);
  color: #fff
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary)
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), #C49B38);
  color: #fff
}

.btn-sm {
  padding: 6px 16px;
  font-size: .8rem
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem
}

.btn-block {
  width: 100%;
  display: flex
}

/* FORMS */
.form-group {
  margin-bottom: 1.25rem
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .875rem;
  color: var(--text)
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  transition: var(--transition);
  background: #fff;
  color: var(--text)
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 73, 101, .1)
}

textarea.form-control {
  min-height: 100px;
  resize: vertical
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem
}

.form-text {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 4px
}

/* CARDS */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition)
}

.card:hover {
  box-shadow: var(--shadow-lg)
}

.card-body {
  padding: 1.5rem
}

.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600
}

.badge-warning {
  background: #FFF3CD;
  color: #856404
}

.badge-info {
  background: #D1ECF1;
  color: #0C5460
}

.badge-danger {
  background: #F8D7DA;
  color: #721C24
}

.badge-success {
  background: #D4EDDA;
  color: #155724
}

.badge-secondary {
  background: #E2E8F0;
  color: #4A5568
}

/* ALERTS */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown .3s ease
}

.alert-success {
  background: #D4EDDA;
  color: #155724;
  border-left: 4px solid var(--success)
}

.alert-error {
  background: #F8D7DA;
  color: #721C24;
  border-left: 4px solid var(--danger)
}

.alert-warning {
  background: #FFF3CD;
  color: #856404;
  border-left: 4px solid var(--warning)
}

.alert-info {
  background: #D1ECF1;
  color: #0C5460;
  border-left: 4px solid var(--info)
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* TABLES */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius)
}

table {
  width: 100%;
  border-collapse: collapse
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: .875rem
}

th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  position: sticky;
  top: 0
}

tr:hover {
  background: rgba(27, 73, 101, .03)
}

/* NAVBAR PUBLIC */
.navbar {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, .15)
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem
}

.navbar-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-dark)
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px
}

.navbar-links a {
  color: rgba(255, 255, 255, .85);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: .9rem;
  transition: var(--transition)
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, .15)
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer
}

/* NAVBAR MASYARAKAT */
.nav-masyarakat {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 65px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, .1)
}

.nav-masyarakat .nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px
}

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

.nav-masyarakat .nav-menu a {
  color: rgba(255, 255, 255, .8);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition)
}

.nav-masyarakat .nav-menu a:hover,
.nav-masyarakat .nav-menu a.active {
  background: rgba(255, 255, 255, .15);
  color: #fff
}

.nav-masyarakat .nav-user {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem
}

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

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--primary-dark), var(--primary));
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: var(--transition)
}

.sidebar-header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.sidebar-header h3 {
  font-size: 1rem;
  margin-top: 8px
}

.sidebar-header small {
  color: rgba(255, 255, 255, .6);
  font-size: .75rem
}

.sidebar-nav {
  padding: 1rem 0
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 1.5rem;
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-left-color: var(--accent-gold)
}

.sidebar-nav a i {
  width: 20px;
  text-align: center
}

.sidebar-nav .nav-section {
  padding: 1rem 1.5rem .5rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, .4)
}

.admin-main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh
}

.admin-topbar {
  background: #fff;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  position: sticky;
  top: 0;
  z-index: 50
}

.admin-topbar h2 {
  font-size: 1.1rem;
  color: var(--primary-dark)
}

.admin-content {
  padding: 2rem
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(190, 233, 232, .15), transparent 70%);
  border-radius: 50%
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 168, 67, .1), transparent 70%);
  border-radius: 50%
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2
}

.hero p {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 2rem;
  line-height: 1.7
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap
}

/* FEATURES */
.features {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto
}

.features h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: .5rem;
  color: var(--primary-dark)
}

.features .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 3rem
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem
}

.feature-card {
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: var(--transition)
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg)
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--accent), #E8F8F7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary)
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--primary-dark)
}

.feature-card p {
  font-size: .875rem;
  color: var(--text-light)
}

/* PAGE CONTAINER */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem
}

.page-header {
  margin-bottom: 2rem
}

.page-header h1 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: .25rem
}

.page-header p {
  color: var(--text-light);
  font-size: .9rem
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-wrap: wrap
}

.breadcrumb a {
  color: var(--primary)
}

.breadcrumb span {
  color: var(--text-light)
}

/* AUTH PAGES */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary))
}

.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden
}

.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 2rem;
  text-align: center;
  color: #fff
}

.auth-header h2 {
  font-size: 1.3rem;
  margin-top: .75rem
}

.auth-header p {
  font-size: .85rem;
  opacity: .8;
  margin-top: .25rem
}

.auth-body {
  padding: 2rem
}

.auth-footer {
  text-align: center;
  padding: 1rem 2rem 2rem;
  font-size: .85rem;
  color: var(--text-light)
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600
}

/* STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition)
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg)
}

.stat-card.warning {
  border-left-color: var(--warning)
}

.stat-card.info {
  border-left-color: var(--info)
}

.stat-card.success {
  border-left-color: var(--success)
}

.stat-card.danger {
  border-left-color: var(--danger)
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark)
}

.stat-card .stat-label {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 4px
}

/* SERVICE CARDS */
.layanan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem
}

.layanan-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border)
}

.layanan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light)
}

.layanan-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(27, 73, 101, .05), rgba(190, 233, 232, .15));
  display: flex;
  align-items: center;
  gap: 1rem
}

.layanan-card-header .icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem
}

.layanan-card-header h3 {
  font-size: 1rem;
  color: var(--primary-dark)
}

.layanan-card-body {
  padding: 0 1.5rem 1.5rem
}

.layanan-card-body p {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 1rem
}

.layanan-card-body .estimasi {
  font-size: .8rem;
  color: var(--info);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px
}

.layanan-card-actions {
  display: flex;
  gap: .5rem
}

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 2rem
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border)
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary)
}

.timeline-item.success::before {
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success)
}

.timeline-item.warning::before {
  background: var(--warning);
  box-shadow: 0 0 0 2px var(--warning)
}

.timeline-item.danger::before {
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--danger)
}

.timeline-item .time {
  font-size: .75rem;
  color: var(--text-light)
}

.timeline-item .status-text {
  font-weight: 600;
  font-size: .9rem;
  margin: 4px 0
}

.timeline-item .note {
  font-size: .85rem;
  color: var(--text-light)
}

/* STEPPER */
.stepper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: .5rem
}

.stepper-item .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-light);
  transition: var(--transition)
}

.stepper-item.active .step-num {
  background: var(--primary);
  color: #fff
}

.stepper-item.done .step-num {
  background: var(--success);
  color: #fff
}

.stepper-item .step-label {
  font-size: .75rem;
  color: var(--text-light);
  font-weight: 500
}

.stepper-item.active .step-label {
  color: var(--accent-gold);
  font-weight: 800;
}

.stepper-line {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin: 0 .25rem;
  align-self: center
}

.stepper-line.done {
  background: var(--success)
}

/* DETAIL SECTIONS */
.detail-section {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow)
}

.detail-section h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--accent)
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem
}

.detail-item {
  padding: .5rem 0
}

.detail-item .label {
  font-size: .75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .5px
}

.detail-item .value {
  font-size: .9rem;
  font-weight: 500;
  margin-top: 2px
}

/* FILTER BAR */
.filter-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap
}

.filter-bar .form-group {
  margin-bottom: 0;
  min-width: 150px;
  flex: 1
}

.filter-bar .form-group label {
  font-size: .75rem
}

.filter-bar .form-control {
  padding: 8px 12px;
  font-size: .85rem
}

/* CHECKLIST */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  background: rgba(245, 247, 250, .5)
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary)
}

.checklist-item label {
  font-size: .875rem;
  cursor: pointer
}

/* PERBAIKAN BOX */
.perbaikan-box {
  background: #FFF3CD;
  border: 1px solid #FFEEBA;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem
}

.perbaikan-box h4 {
  color: #856404;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 8px
}

.perbaikan-box p {
  font-size: .875rem;
  color: #856404
}

/* SUCCESS PAGE */
.success-container {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
  margin: 2rem auto
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
  animation: scaleIn .5s ease
}

@keyframes scaleIn {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

.success-container h2 {
  color: var(--primary-dark);
  margin-bottom: .5rem
}

.success-container .nomor {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0
}

/* HELP PAGE */
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: .75rem;
  background: #fff;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-light);
}

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  background: #F8FAFC;
  color: var(--primary-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.faq-item p {
  padding: 1.5rem;
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* FOOTER */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, .7);
  text-align: center;
  padding: 2rem;
  font-size: .8rem;
  margin-top: auto
}

.footer a {
  color: var(--accent)
}

/* MOBILE BOTTOM NAV */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, .1);
  z-index: 1000;
  padding: 8px 0
}

.bottom-nav-items {
  display: flex;
  justify-content: space-around
}

.bottom-nav-items a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .65rem;
  color: var(--text-light);
  padding: 4px 8px;
  transition: var(--transition)
}

.bottom-nav-items a.active,
.bottom-nav-items a:hover {
  color: var(--primary)
}

.bottom-nav-items a i {
  font-size: 1.2rem;
  margin-bottom: 2px
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-light)
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .3
}

.empty-state p {
  font-size: .9rem
}

/* DOC LIST */
.doc-list {
  list-style: none
}

.doc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: .85rem
}

.doc-list li i {
  color: var(--primary)
}

/* UPLOAD AREA */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition)
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(27, 73, 101, .02)
}

.upload-area i {
  font-size: 2rem;
  color: var(--text-light);
  margin-bottom: .5rem
}

.upload-area p {
  font-size: .85rem;
  color: var(--text-light)
}

/* RESPONSIVE */
@media(max-width:992px) {
  .sidebar {
    transform: translateX(-100%)
  }

  .sidebar.open {
    transform: translateX(0)
  }

  .admin-main {
    margin-left: 0
  }

  .admin-topbar .sidebar-toggle {
    display: block
  }

  .help-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .navbar {
    padding: 0 1rem;
    height: 60px
  }

  .navbar-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem
  }

  .navbar-links.open {
    display: flex
  }

  .mobile-toggle {
    display: block
  }

  .hero {
    padding: 3rem 1.5rem
  }

  .hero h1 {
    font-size: 1.8rem
  }

  .hero p {
    font-size: 1rem
  }

  .features {
    padding: 2rem 1rem
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .detail-grid {
    grid-template-columns: 1fr
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .layanan-grid {
    grid-template-columns: 1fr
  }

  .filter-bar {
    flex-direction: column
  }

  .page-container {
    padding: 1rem
  }

  .nav-masyarakat {
    padding: 0 1rem
  }

  .nav-masyarakat .nav-menu {
    display: none
  }

  .bottom-nav {
    display: block
  }

  .stepper {
    flex-wrap: wrap;
    gap: .5rem
  }

  .stepper-line {
    display: none
  }

  /* Optimize tables for mobile */
  .table-responsive {
    border: 0;
    box-shadow: none;
    background: transparent
  }

  table {
    border: 0
  }

  table thead {
    display: none
  }

  table tr {
    display: block;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 1rem;
    border: 1px solid var(--border)
  }

  table td {
    display: block;
    text-align: right;
    border-bottom: 1px solid #F1F5F9;
    padding: 8px 0
  }

  table td::before {
    content: attr(data-label);
    float: left;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: .75rem;
  }

  table td:last-child {
    border-bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 8px
  }
}

@media(max-width:480px) {
  .stats-grid {
    grid-template-columns: 1fr
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center
  }

  .hero h1 {
    font-size: 1.5rem
  }
}