/* Dashboard Styles */

.dashboard-section {
  padding: 60px 0 80px 0;
}

/* KPI Cards */
.dashboard-kpi-row {
  margin-bottom: 30px;
}

.kpi-card {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 20px;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.kpi-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(164, 198, 57, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 18px;
  flex-shrink: 0;
}

.kpi-icon i {
  font-size: 24px;
  color: #a4c639;
}

.kpi-icon.icon-green {
  background: rgba(40, 167, 69, 0.12);
}

.kpi-icon.icon-green i {
  color: #28a745;
}

.kpi-icon.icon-blue {
  background: rgba(0, 123, 255, 0.12);
}

.kpi-icon.icon-blue i {
  color: #007bff;
}

.kpi-icon.icon-orange {
  background: rgba(255, 152, 0, 0.12);
}

.kpi-icon.icon-orange i {
  color: #ff9800;
}

.kpi-details {
  flex: 1;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.2;
}

.kpi-label {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Dashboard Cards */
.dashboard-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 30px;
}

.card-header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.card-header-custom h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1e1e1e;
  margin: 0;
}

/* Chart Filter Buttons */
.chart-filter {
  display: flex;
  gap: 5px;
}

.chart-filter-btn {
  background: #f5f5f5;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Poppins', sans-serif;
}

.chart-filter-btn:hover {
  background: #e8e8e8;
}

.chart-filter-btn.active {
  background: #a4c639;
  color: #fff;
}

/* Chart Containers */
.chart-container {
  position: relative;
  width: 100%;
  height: 300px;
}

.chart-container-doughnut {
  height: 220px;
}

.chart-legend {
  padding-top: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}

.legend-label {
  font-size: 13px;
  color: #666;
  flex: 1;
}

.legend-value {
  font-size: 13px;
  font-weight: 600;
  color: #1e1e1e;
}

/* Table Search */
.table-search {
  flex-shrink: 0;
}

.search-input {
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
  width: 200px;
}

.search-input:focus {
  border-color: #a4c639;
}

.search-input::placeholder {
  color: #bbb;
}

/* Dashboard Table */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table thead th {
  background: #f9f9f9;
  padding: 12px 15px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-bottom: 2px solid #eee;
  text-align: left;
  white-space: nowrap;
}

.dashboard-table tbody td {
  padding: 14px 15px;
  font-size: 14px;
  color: #444;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.dashboard-table tbody tr:hover {
  background: #fafbf5;
}

.dashboard-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-active {
  background: rgba(164, 198, 57, 0.15);
  color: #7a9c1a;
}

.status-resolved {
  background: rgba(40, 167, 69, 0.15);
  color: #1e7e34;
}

.status-pending {
  background: rgba(255, 152, 0, 0.15);
  color: #c77700;
}

.status-review {
  background: rgba(0, 123, 255, 0.15);
  color: #0056b3;
}

/* Activity Feed */
.activity-feed {
  max-height: 480px;
  overflow-y: auto;
}

.activity-feed::-webkit-scrollbar {
  width: 4px;
}

.activity-feed::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(164, 198, 57, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.activity-icon i {
  font-size: 14px;
  color: #a4c639;
}

.activity-icon-green {
  background: rgba(40, 167, 69, 0.12);
}

.activity-icon-green i {
  color: #28a745;
}

.activity-icon-blue {
  background: rgba(0, 123, 255, 0.12);
}

.activity-icon-blue i {
  color: #007bff;
}

.activity-icon-orange {
  background: rgba(255, 152, 0, 0.12);
}

.activity-icon-orange i {
  color: #ff9800;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 3px;
}

.activity-content span {
  font-size: 12px;
  color: #aaa;
}

/* Jurisdiction List */
.jurisdiction-list {
  padding-top: 5px;
}

.jurisdiction-item {
  margin-bottom: 18px;
}

.jurisdiction-item:last-child {
  margin-bottom: 0;
}

.jurisdiction-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.jurisdiction-name {
  font-size: 14px;
  color: #444;
  font-weight: 500;
}

.jurisdiction-count {
  font-size: 13px;
  color: #888;
}

.jurisdiction-bar {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.jurisdiction-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #a4c639, #8db52e);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s ease;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .dashboard-section {
    padding: 40px 0 60px 0;
  }

  .kpi-card {
    padding: 20px;
  }

  .kpi-value {
    font-size: 24px;
  }

  .card-header-custom {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-input {
    width: 100%;
  }

  .dashboard-table {
    font-size: 13px;
  }

  .dashboard-table thead th,
  .dashboard-table tbody td {
    padding: 10px 8px;
  }

  .chart-container {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .kpi-icon {
    width: 48px;
    height: 48px;
    margin-right: 14px;
  }

  .kpi-icon i {
    font-size: 20px;
  }

  .kpi-value {
    font-size: 22px;
  }

  .dashboard-card {
    padding: 18px;
  }
}
