/* ===== Dashboard ===== */

/* Header */
.dash-header {
  padding-top: 0.5rem;
}

.dash-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 0.25rem;
}

.dash-subtitle {
  font-size: 0.9rem;
  color: #777 !important;
  margin-bottom: 0;
}

/* ===== Stat cards ===== */
.dash-stat-card {
  background: #222;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  transition: border-color 0.2s;
}

.dash-stat-card:hover {
  border-color: #444;
}

.dash-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--stat-color) 12%, transparent);
  color: var(--stat-color);
}

.dash-stat-label {
  font-size: 0.75rem;
  color: #888 !important;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.dash-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 0;
}

/* ===== Section labels ===== */
.dash-section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #999 !important;
  margin-bottom: 0.75rem;
}

.dash-section-label i {
  color: #FF6B00;
}

/* ===== Quick action buttons ===== */
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #FF6B00 !important;
  background: transparent;
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s;
}

.dash-action-btn:hover {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.4);
  color: #FF8533 !important;
}

/* ===== Cards (urgent items, recent activity) ===== */
.dash-card {
  background: #222;
  border: 1px solid #2d2d2d;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dash-card-header {
  padding: 0.85rem 1.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid #2d2d2d;
}

.dash-card-header.danger {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.06);
  border-bottom-color: rgba(239, 68, 68, 0.1);
}

.dash-card-header.warning {
  color: #fcd34d !important;
  background: rgba(245, 158, 11, 0.06);
  border-bottom-color: rgba(245, 158, 11, 0.1);
}

.dash-card-header.info {
  color: #93c5fd !important;
  background: rgba(59, 130, 246, 0.06);
  border-bottom-color: rgba(59, 130, 246, 0.1);
}

.dash-card-header.neutral {
  color: #e0e0e0 !important;
  background: #252525;
}

/* ===== List items (urgent items) ===== */
.dash-card-list {
  flex-grow: 1;
}

.dash-list-item {
  display: flex;
  align-items: flex-start;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #2a2a2a;
  text-decoration: none !important;
  transition: background 0.15s;
}

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

.dash-list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.dash-list-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e0e0e0 !important;
  margin-bottom: 0.15rem;
}

.dash-list-meta {
  font-size: 0.78rem;
  color: #777 !important;
  margin-bottom: 0.25rem;
}

.dash-list-date {
  font-size: 0.75rem;
  margin-bottom: 0;
}

.dash-list-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #ccc !important;
}

/* ===== Card footer ===== */
.dash-card-footer {
  padding: 0.65rem 1.25rem;
  border-top: 1px solid #2a2a2a;
  background: #1e1e1e;
}

.dash-footer-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: #FF6B00 !important;
  text-decoration: none !important;
  transition: color 0.2s;
}

.dash-footer-link:hover {
  color: #FF8533 !important;
}

/* ===== Table (recent activity) ===== */
.dash-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.dash-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #777 !important;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #2d2d2d;
  background: #252525 !important;
}

.dash-table tbody td {
  font-size: 0.85rem;
  color: #ccc !important;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #2a2a2a;
}

.dash-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dash-table-link {
  color: #FF6B00 !important;
  text-decoration: none !important;
  font-weight: 600;
}

.dash-table-link:hover {
  color: #FF8533 !important;
}
