/* Dashboard Section Styles - Black & White */

/* UPI Payment Summary Section */
.upi-summary-section {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  box-shadow: var(--shadow-card);
}

.upi-summary-section .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.upi-summary-section .card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin: 0;
}

.upi-total {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

.upi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
}

.upi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.upi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.upi-card-icon {
  font-size: 28px;
  margin-bottom: var(--space-2);
}

.upi-card-name {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-bottom: var(--space-1);
  text-transform: capitalize;
}

.upi-card-amount {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.upi-card-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* Chart Cards */
.chart-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.chart-card:hover {
  border-color: var(--text-secondary);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.chart-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.chart-container {
  position: relative;
  height: 280px;
}

.chart-canvas {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-elevated);
}

.chart-tooltip.visible {
  opacity: 1;
}

/* Charts Grid Layout */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.chart-card.wide {
  grid-column: span 2;
}

/* Top Categories List */
.top-categories {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.top-categories-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.top-category-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.top-category-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.top-category-info {
  flex: 1;
}

.top-category-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.top-category-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.top-category-progress {
  height: 100%;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.top-category-amount {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  text-align: right;
  min-width: 80px;
}

/* Recent Transactions Card */
.recent-transactions {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.recent-transaction-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.recent-transaction-item:last-child {
  border-bottom: none;
}

.recent-transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  flex-shrink: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.recent-transaction-info {
  flex: 1;
}

.recent-transaction-desc {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.recent-transaction-meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.recent-transaction-amount {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
}

.recent-transaction-amount.income {
  color: var(--text-primary);
}

.recent-transaction-amount.expense {
  color: var(--text-secondary);
}

.recent-transaction-delete {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  opacity: 0;
  transition: all var(--transition-fast);
  background: transparent;
  border: none;
  cursor: pointer;
}

.recent-transaction-item:hover .recent-transaction-delete {
  opacity: 1;
}

.recent-transaction-delete:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}

/* Budget Progress Cards */
.budget-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.budget-progress-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}

.budget-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.budget-progress-category {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.budget-progress-icon {
  font-size: var(--text-xl);
}

.budget-progress-name {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
}

.budget-progress-percent {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.budget-progress-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.budget-progress-fill {
  height: 100%;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.budget-progress-fill.warning {
  background: repeating-linear-gradient(
    45deg,
    var(--text-primary),
    var(--text-primary) 10px,
    transparent 10px,
    transparent 20px
  );
}

.budget-progress-fill.danger {
  background: var(--text-primary);
  opacity: 0.5;
}

.budget-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.budget-progress-spent {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.budget-progress-limit {
  font-family: var(--font-mono);
}

/* Dashboard Bottom Section */
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

/* Quick Add Button */
.quick-add-btn {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 56px;
  height: 56px;
  background: var(--text-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  color: var(--text-inverse);
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-fast);
  z-index: var(--z-dropdown);
  border: none;
  cursor: pointer;
}

.quick-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* Trial Info Banner */
.trial-info-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-5);
  text-align: center;
}

/* Current Plan Indicator */
.pricing-card.current {
  border-color: var(--text-primary);
  opacity: 0.8;
}

.pricing-card.current::before {
  content: 'CURRENT PLAN';
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}
