/* Custom Styles for Data Desa Page - Focused on Angka */
/* Main container styling */
#content {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

/* Sidebar styling */
.sidebar {
  width: 250px;
  background-color: #f8f9fa;
  padding: 100px 0 0 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  position: fitted;
  height: fit-content;
}

.menu-box {
  padding: 10px;
  margin: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.menu-box:hover {
  background-color: #e2e6ea;
}

.menu-box.active {
  background-color: #d2b356;
  color: black;
}

.menu-box i {
  margin-right: 10px;
}

/* Main content styling */
.data-desa-section {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.data-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 auto 40px;
  overflow: hidden;
  max-width: 1200px;
}

.data-header {
  background: #d2b356;
  color: white;
  padding: 20px;
  text-align: center;
}

.data-content {
  padding: 30px;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.stat-table th {
  background-color: #d2b356;
  color: white;
  padding: 12px;
  text-align: center;
}

.stat-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.stat-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.stat-table tr:hover {
  background-color: #f1f1f1;
}

.stat-table .category {
  font-weight: bold;
  color: #000000;
  text-align: left;
}

.year-header {
  background-color: #e6f2ff;
  font-weight: bold;
}

.download-btn {
  display: inline-block;
  background: #d2b356;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-top: 20px;
  text-decoration: none;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #c4a64c;
}

/* Added to match index.html styling */
.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.section-subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.table-container {
  overflow-x: auto;
}

.trend-up {
  color: #4caf50;
}

.trend-down {
  color: #f44336;
}

.trend-neutral {
  color: #ffc107;
}

.menu-box:hover {
  background: rgba(80, 69, 69, 0.2);
  transform: translateX(5px);
}

.menu-box.active {
  background: rgba(255, 255, 255, 0.3);
  font-weight: bold;
}

.menu-box i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.header {
  background: #d2b356;
  color: white;
  padding: 0 0 0 200px;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  #content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    padding: 10px;
  }
}
