/* Finance Tracker — custom styles */

body {
  font-size: 0.9rem;
}

.bank-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.bank-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bank-logo--sm {
  width: 2rem;
  height: 2rem;
}

.bank-logo--md {
  width: 2.75rem;
  height: 2.75rem;
}

.account-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.account-chip--compact {
  gap: 0.5rem;
}

.account-chip__title {
  font-weight: 600;
  line-height: 1.2;
}

.account-chip__meta {
  color: #94a3b8;
  font-size: 0.78rem;
}

.account-product-thumb {
  width: 4.25rem;
  height: 2.65rem;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex-shrink: 0;
}

.account-product-thumb--compact {
  width: 3.1rem;
  height: 2rem;
  border-radius: 0;
}

.credit-card-visual {
  position: relative;
  min-height: 7.2rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  overflow: hidden;
  color: #f8fafc;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.35);
}

.credit-card-visual::before {
  content: "";
  position: absolute;
  inset: auto -2rem -2rem auto;
  width: 7rem;
  height: 7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.credit-card-visual--compact {
  min-height: 4.25rem;
  padding: 0.65rem 0.8rem;
  border-radius: 0.9rem;
}

.credit-card-visual__top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.credit-card-visual__badge {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.credit-card-visual__art {
  max-width: 4.8rem;
  max-height: 2.9rem;
  object-fit: contain;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem;
}

.credit-card-visual__name {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.credit-card-visual--compact .credit-card-visual__name {
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

.credit-card-visual__meta {
  position: relative;
  z-index: 1;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.82);
}

.bank-theme-adcb {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #b45309 100%);
}

.bank-theme-hsbc {
  background: linear-gradient(135deg, #111827 0%, #7f1d1d 55%, #dc2626 100%);
}

.bank-theme-emirates-islamic {
  background: linear-gradient(135deg, #14532d 0%, #166534 55%, #ca8a04 100%);
}

.bank-theme-emirates-nbd {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 45%, #059669 100%);
}

.bank-theme-indusind {
  background: linear-gradient(135deg, #7c2d12 0%, #9a3412 55%, #f59e0b 100%);
}

.bank-theme-bank-of-baroda {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 60%, #fb923c 100%);
}

.bank-theme-axis-bank {
  background: linear-gradient(135deg, #581c87 0%, #7e164f 55%, #db2777 100%);
}

.bank-theme-default-bank {
  background: linear-gradient(135deg, #334155 0%, #475569 55%, #64748b 100%);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.account-grid-card {
  padding: 0.9rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.55);
}

.account-grid-card__meta {
  margin-top: 0.6rem;
  color: #94a3b8;
  font-size: 0.78rem;
}

/* Extra-small button helper */
.btn-xs {
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
  line-height: 1.4;
  border-radius: 0.2rem;
}

/* Tighten up card headers */
.card-header {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

/* Sticky table headers */
.table-responsive thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Dim inactive rows */
tr.opacity-50 td {
  opacity: 0.5;
}

/* Sidebar-style nav on large screens */
@media (min-width: 992px) {
  .container-fluid {
    max-width: 1400px;
  }
}
