/* Dashboard Cards & Layout Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.card-icon.cash { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.card-icon.bank { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.card-icon.hand { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.card-icon.income { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.card-icon.expense { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.card-icon.net { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.card-value {
  font-size: 1.6rem;
  font-weight: 700;
}

/* Charts & Main Section Grid */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.chart-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Tables Styling */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-bottom: 1px solid var(--glass-border);
}

.custom-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.9rem;
}

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

.badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-income { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-expense { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.badge-paid { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.badge-overdue { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
