.dashboard-content {
  padding: 20px;
  flex: 1;
}

.filter-bar {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  gap: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  flex: 1;
}

.filter-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input[type="date"] {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-white);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.filter-actions {
  gap: 8px;
  padding-top: 18px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
}

.widgets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.widget-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  cursor: default;
}

.widget-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.widget-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.widget-icon.total {
  background: #eff6ff;
  color: var(--primary-blue);
}

.widget-icon.available {
  background: #dcfce7;
  color: var(--success-green);
}

.widget-icon.allocated {
  background: #e0e7ff;
  color: #6366f1;
}

.widget-icon.transfer {
  background: #fef3c7;
  color: #f59e0b;
}

.widget-icon.pending {
  background: #fff7ed;
  color: var(--warning-orange);
}

.widget-icon.removed {
  background: #fee2e2;
  color: var(--danger-red);
}

.widget-info {
  flex: 1;
  min-width: 0;
}

.widget-count {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.widget-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.widget-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.chart-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.chart-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-header h4 i {
  color: var(--primary-blue);
  font-size: 16px;
}

.chart-body {
  padding: 20px;
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-body canvas {
  max-height: 280px;
}

.chart-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
}

.chart-empty i {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}

.chart-empty p {
  font-size: 13px;
}

.widget-card.skeleton .widget-count,
.widget-card.skeleton .widget-label,
.widget-card.skeleton .widget-subtitle {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent;
}

.widget-card.skeleton .widget-icon {
  background: #f0f0f0;
  color: transparent;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.chart-card.skeleton .chart-body {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@media (max-width: 1400px) {
  .widgets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1200px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .widgets-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .widget-count {
    font-size: 22px;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-group {
    min-width: calc(50% - 12px);
    flex: unset;
  }

  .filter-actions {
    padding-top: 8px;
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .dashboard-content {
    padding: 12px;
  }

  .widgets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .widget-card {
    padding: 14px;
    gap: 12px;
  }

  .widget-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .widget-count {
    font-size: 20px;
  }

  .widget-label {
    font-size: 12px;
  }

  .filter-bar {
    padding: 12px;
  }

  .filter-group {
    min-width: 100%;
  }

  .charts-grid {
    gap: 12px;
  }

  .chart-body {
    min-height: 250px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .dashboard-content {
    padding: 8px;
  }

  .widgets-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .widget-card {
    padding: 12px;
  }

  .widget-count {
    font-size: 18px;
  }

  .chart-body {
    min-height: 200px;
  }

  .chart-body canvas {
    max-height: 200px;
  }
}
