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

:root {
  /* Color Palette */
  --primary: #0f5132;
  --primary-rgb: 15, 81, 50;
  --primary-light: #e8f5e9;
  --primary-hover: #146c43;
  --secondary: #d4a373;
  --secondary-hover: #c68a4c;
  --accent: #ffb703;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray-50: #fafafa;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --white: #ffffff;
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Typography */
  --font-header: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Layout & Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-full: 9999px;

  /* Elevation / Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(15, 81, 50, 0.05);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 10px 25px rgba(15, 81, 50, 0.2);
  --shadow-glass: 0 8px 32px 0 rgba(15, 81, 50, 0.06);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
}

/* 1. RESET & GENERAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  width: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--border-radius-full);
  border: 2px solid var(--gray-100);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-bg {
  background-color: var(--gray-50);
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-muted { color: var(--gray-600); }

.section-header {
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: var(--border-radius-full);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-header);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 81, 50, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
}

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

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

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  padding: 0;
}

/* 2. HEADER & NAVIGATION */
.header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo img {
  height: 45px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: var(--transition-normal);
  border-radius: var(--border-radius-full);
}

/* Burger Animation */
.burger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.burger.toggle .line2 { opacity: 0; }
.burger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }


/* 3. HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 10% 20%, rgba(230, 244, 235, 0.7) 0%, rgba(255, 255, 255, 0.9) 90%), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
}

.hero-tag {
  background-color: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--border-radius-full);
  display: inline-block;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInSlow 1.2s ease;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
  transform: rotate(2deg);
  transition: var(--transition-normal);
}

.hero-image-wrapper:hover {
  transform: rotate(0) scale(1.02);
}

/* 4. PROFILE DUSUN & STATS */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.profile-info h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.profile-info p {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: var(--white);
  padding: 30px 20px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.stat-card h4 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}

.chart-wrapper {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  height: 350px;
}

/* 5. KEGIATAN PEMUDA (NEWS) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.news-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.news-card:hover .news-image img {
  transform: scale(1.08);
}

.news-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--accent);
  color: var(--dark);
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
}

.news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--dark);
  line-height: 1.4;
}

.news-excerpt {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-footer {
  margin-top: auto;
  border-top: 1px solid var(--gray-200);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.author-info img {
  width: 28px;
  height: 28px;
  border-radius: var(--border-radius-full);
}

.read-more-link {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  color: var(--primary-hover);
}

/* 6. UMKM DIRECTORY */
.umkm-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.umkm-search {
  max-width: 500px;
  margin: 0 auto 40px auto;
  position: relative;
}

.umkm-search input {
  width: 100%;
  padding: 14px 24px;
  padding-right: 50px;
  border-radius: var(--border-radius-full);
  border: 2px solid var(--gray-200);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.umkm-search input:focus {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.umkm-search i {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  color: var(--gray-600);
}

.umkm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.umkm-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.umkm-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.umkm-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.umkm-card:hover .umkm-image img {
  transform: scale(1.08);
}

.umkm-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: rgba(15, 81, 50, 0.95);
  color: var(--white);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
}

.umkm-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.umkm-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.umkm-owner {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.umkm-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.5;
}

.umkm-contact {
  margin-top: auto;
  border-top: 1px solid var(--gray-100);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.umkm-address {
  font-size: 0.8rem;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  color: var(--white);
}

/* 7. PETA DUSUN */
.map-section {
  position: relative;
}

.map-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

#map {
  height: 500px;
  width: 100%;
  z-index: 10;
}

.map-legend {
  padding: 20px;
  background-color: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.legend-icon {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

/* 8. FOOTER */
.footer {
  background-color: var(--dark);
  color: var(--gray-300);
  padding: 60px 0 20px 0;
  border-top: 5px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-info .footer-logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-full);
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition-normal);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.8rem;
}

/* 9. DASHBOARD SPECIFIC STYLES */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--gray-100);
}

.sidebar {
  width: 260px;
  background-color: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  z-index: 100;
  transition: var(--transition-normal);
}

.sidebar-brand {
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu {
  list-style: none;
  padding: 24px 0;
  flex-grow: 1;
}

.sidebar-menu-item {
  padding: 2px 16px;
  margin-bottom: 8px;
}

.sidebar-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  color: var(--gray-300);
  font-weight: 500;
  font-size: 0.95rem;
}

.sidebar-menu-link:hover,
.sidebar-menu-item.active .sidebar-menu-link {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.sidebar-menu-item.active .sidebar-menu-link {
  border-left: 4px solid var(--secondary);
  background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-full);
  border: 2px solid var(--secondary);
}

.sidebar-user-info h5 {
  color: var(--white);
  font-size: 0.9rem;
}

.sidebar-user-info p {
  color: var(--gray-600);
  font-size: 0.75rem;
}

.btn-logout {
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
}

.btn-logout:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.dashboard-main {
  flex-grow: 1;
  margin-left: 260px;
  padding: 40px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.dash-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.peta-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.dashboard-header h1 {
  font-size: 2rem;
}

.pending-banner {
  background-color: var(--warning);
  color: var(--dark);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  animation: pulse 2s infinite;
}

.rejected-banner {
  background-color: var(--danger);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Dashboard Panels / Tabs */
.dashboard-panel {
  display: none;
}

.dashboard-panel.active {
  display: block;
}

/* Card & Tables in Dashboard */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dash-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.dash-card-value {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  font-family: var(--font-header);
}

.table-wrapper {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background-color: var(--gray-50);
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  text-transform: uppercase;
}

td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--gray-50);
}

.badge {
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-pending {
  background-color: #fef3c7;
  color: #d97706;
}

.badge-approved {
  background-color: #d1fae5;
  color: #059669;
}

.badge-rejected {
  background-color: #fee2e2;
  color: #dc2626;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.btn-action {
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.btn-edit {
  background-color: #eff6ff;
  color: #2563eb;
}

.btn-edit:hover {
  background-color: #dbeafe;
}

.btn-delete {
  background-color: #fef2f2;
  color: #dc2626;
}

.btn-delete:hover {
  background-color: #fee2e2;
}

.btn-approve {
  background-color: #d1fae5;
  color: #059669;
}

.btn-approve:hover {
  background-color: #a7f3d0;
}

.btn-reject {
  background-color: #fee2e2;
  color: #dc2626;
}

.btn-reject:hover {
  background-color: #fecaca;
}

/* Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  transform: scale(0.9);
  transition: var(--transition-normal);
}

.modal.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-600);
  cursor: pointer;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-300);
  background-color: var(--white);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.form-control-sm {
  width: auto;
  min-width: 140px;
  max-width: 100%;
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--gray-300);
  background-color: var(--white);
  color: var(--dark);
  font-family: inherit;
  outline: none;
  transition: var(--transition-fast);
}

.form-control-sm:focus {
  border-color: var(--primary);
}

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

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

/* Auth Page specific styling if nested */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(230, 244, 235, 0.7) 0%, rgba(255, 255, 255, 0.9) 90%), url('https://images.unsplash.com/photo-1500382017468-9049fed747ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  padding: 24px;
}

.auth-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  text-align: center;
  border: 1px solid var(--gray-200);
}

.auth-card .logo {
  justify-content: center;
  margin-bottom: 30px;
}

.auth-card h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.auth-card p {
  color: var(--gray-600);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.btn-google {
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--dark);
  width: 100%;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-google:hover {
  background-color: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background-color: var(--white);
  color: var(--dark);
  padding: 16px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
  max-width: 400px;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }

/* 10. KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInSlow {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* 11. RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-media {
    order: -1;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sidebar {
    width: 80px;
  }
  .sidebar-brand {
    padding: 0;
    justify-content: center;
  }
  .sidebar-brand h3,
  .sidebar-brand .logo span,
  .sidebar-menu-link span,
  .sidebar-user-info {
    display: none;
  }
  .sidebar-brand .logo img {
    height: 30px;
    margin: 0;
  }
  .sidebar-menu-link {
    justify-content: center;
    padding: 12px;
  }
  .sidebar-footer {
    flex-direction: column;
    padding: 15px 10px;
    gap: 8px;
    align-items: center;
  }
  .dashboard-main {
    margin-left: 80px;
  }
}

/* Default state for mobile header and overlay on desktop */
.dashboard-mobile-header {
  display: none;
}
.sidebar-overlay {
  display: none;
}

@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }
  html {
    font-size: 14px;
  }
  .section {
    padding: 50px 0 !important;
  }
  .logo {
    font-size: 1.25rem;
  }
  .logo img {
    height: 35px;
  }
  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .nav-actions {
    gap: 8px;
  }
  #map {
    height: 350px;
  }
  .hero-content h1 {
    font-size: 2.2rem !important;
  }
  .hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    transform: none !important;
  }
  .hero-image-wrapper img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .stats-container {
    grid-template-columns: 1fr !important;
  }
  .news-grid {
    grid-template-columns: 1fr !important;
  }
  .umkm-grid {
    grid-template-columns: 1fr !important;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--white);
    flex-direction: column;
    padding: 40px 0;
    gap: 24px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    border-top: 1px solid var(--gray-200);
  }
  .nav-links.active {
    left: 0;
  }
  .burger {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .dashboard-main {
    margin-left: 0 !important;
    margin-top: 60px;
    padding: 20px 15px !important;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  
  /* Mobile Sidebar Drawer */
  .sidebar {
    width: 260px !important;
    left: -260px !important;
    height: 100vh !important;
    position: fixed !important;
    z-index: 1000 !important;
    transition: left var(--transition-normal) !important;
  }
  .sidebar.active {
    left: 0 !important;
  }
  .sidebar-brand .logo span,
  .sidebar-menu-link span,
  .sidebar-user-info {
    display: block !important;
  }
  .sidebar-menu-link {
    justify-content: flex-start !important;
    padding: 12px 16px !important;
  }
  .sidebar-brand {
    padding: 0 24px !important;
    justify-content: flex-start !important;
  }
  .sidebar-footer {
    flex-direction: row !important;
    padding: 20px 24px !important;
    gap: 12px !important;
    align-items: center !important;
  }
  
  /* Mobile Sidebar Overlay */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }
  .sidebar-overlay.active {
    display: block;
  }
  
  /* Mobile Panel Headers & Peta Settings Grid */
  .dash-panel-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .dash-panel-header h3 {
    margin-bottom: 0 !important;
  }
  .dash-panel-header .btn {
    width: 100% !important;
    justify-content: center !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .peta-settings-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* Mobile Top Header for Dashboard */
  .dashboard-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    background-color: var(--dark);
    color: var(--white);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
  }
  .mobile-menu-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .dashboard-header h1 {
    font-size: 1.5rem !important;
  }
  .dashboard-header p {
    font-size: 0.85rem !important;
  }
}

/* 12. MODAL TABS & FORMS FOR LOGIN/REGISTER */
.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
  gap: 10px;
}
.modal-tab-btn {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-600);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition-fast);
  text-align: center;
}
.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.modal-tab-content {
  display: none;
  text-align: left;
}
.modal-tab-content.active {
  display: block;
}

/* 13. IMAGE PREVIEW FOR DASHBOARD UPLOADS */
.image-preview-container {
  margin-top: 12px;
  padding: 12px;
  background-color: var(--gray-50);
  border: 1px dashed var(--gray-300);
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}
.image-preview-container img {
  max-width: 100%;
  max-height: 160px;
  border-radius: var(--border-radius-sm);
  object-fit: contain;
  border: 1px solid var(--gray-200);
  margin-bottom: 8px;
}
.image-preview-container button {
  font-size: 0.85rem;
  padding: 6px 12px;
}

