/* General Layout */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
}

/* Scoped to dashboard page only — prevents bleeding into homepage and other pages */
.dashboard-page h4 {
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Fix: ensure section headings respect parent text-align in page builder */
.section h2,
.section h4 {
  text-align: inherit;
  display: block;
  width: 100%;
}

/* Divider */
.section-divider {
  border-top: 1px solid #ddd;
  margin: 40px 0;
}

/* Stat Grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 15px 10px;
  text-align: center;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
}

.stat-icon {
  font-size: 28px;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 22px;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 12px;
  color: #666;
}

/* Search Panel */
#search-panel {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

#search-input {
  margin-bottom: 10px;
}

#search-results {
  margin-top: 15px;
}

.text-danger {
  color: #dc3545;
}

/* Quick Access */
.quick-access button {
  margin-right: 10px;
}
