/* Black Garlic Dashboard Styles */

.bgd-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", sans-serif;
}

.bgd-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.bgd-header h1 {
  margin: 0 0 8px;
  color: #1a1a1a;
  font-size: 32px;
  font-weight: 600;
}

.bgd-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* KPI Cards */
.bgd-kpi-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.bgd-kpi-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bgd-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bgd-kpi-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.bgd-kpi-value {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bgd-kpi-detail {
  font-size: 12px;
  opacity: 0.85;
}

/* New section styling for single-page layout */
.bgd-section {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
}

.bgd-section:last-child {
  border-bottom: none;
}

.bgd-section h2 {
  color: #1a1a1a;
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 600;
}

.bgd-section-desc {
  color: #666;
  margin: 0 0 20px;
  font-size: 14px;
}

/* Subsection for nested tables */
.bgd-subsection {
  margin-bottom: 30px;
}

.bgd-subsection h3 {
  color: #333;
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.bgd-subsection:first-child h3 {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Tables */
.bgd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
}

.bgd-table thead {
  background: #f5f5f5;
}

.bgd-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.bgd-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #666;
}

.bgd-table tbody tr:hover {
  background: #fafafa;
}

.bgd-table tbody tr:last-child td {
  border-bottom: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
  .bgd-container {
    padding: 15px;
    margin: 10px auto;
  }

  .bgd-header h1 {
    font-size: 24px;
  }

  .bgd-kpi-section {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .bgd-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .bgd-table {
    font-size: 12px;
  }

  .bgd-table th,
  .bgd-table td {
    padding: 8px 12px;
  }

  .bgd-subsection h3 {
    font-size: 14px;
    margin: 15px 0 10px;
  }
}
