/* ================================
   Global Base
================================ */
:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e5e7eb;

  --primary: #2563eb;
  --primary-soft: #eff6ff;

  --success: #16a34a;
  --success-soft: #dcfce7;

  --danger: #dc2626;
  --danger-soft: #fee2e2;

  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
}



.md-btn-group{
    display: flex;
    gap: 12px;
    align-items: center;
}

.list-btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;

  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);

  color: #0f172a;
  cursor: pointer;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Hover */
.list-btn:hover {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: rgba(37, 99, 235, 0.25);

  box-shadow:
    0 6px 16px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  transform: translateY(-2px);
}

/* Active (pressed) */
.list-btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Keyboard accessibility */
.list-btn:focus-visible {
  outline: none;
  border-color: #2563eb;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* ================================
   Table
================================ */
.transactions-table-container {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table thead {
  background: #f8fafc;
}

.transactions-table th {
  padding: 14px 0px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.transactions-table td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

#add-trans-form-container{
  width: 70%;
  margin: 0 auto;
}

.transactions-table tbody tr:hover {
  background: #f9fafb;
}

/* ================================
   Transaction Pills
================================ */
.transaction-type {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  text-transform: capitalize;
}

.transaction-type.income {
  background: var(--success-soft);
  color: var(--success);
}

.transaction-type.expense {
  background: var(--danger-soft);
  color: var(--danger);
}

.transaction-amount {
  font-weight: 600;
}

.transaction-amount.positive {
  color: var(--success);
}

.transaction-amount.negative {
  color: var(--danger);
}

/* ================================
   Action Buttons
================================ */
.transaction-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;

  cursor: pointer;
  transition: all 0.15s ease;
}

.action-btn:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

/* ================================
   Modal Effect (optional)
================================ */
.hidden {
  display: none;
}
