/* ==========================================================================
   FinanFlow - Realistic Credit Cards & Invoices CSS
   ========================================================================== */

.cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credit-card-item {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.credit-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

/* Card Themes / Gradients */
.card-theme-purple {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #8b5cf6 100%);
}

.card-theme-blue {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #3b82f6 100%);
}

.card-theme-emerald {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #10b981 100%);
}

.card-theme-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
}

.card-bank-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-chip {
  width: 42px;
  height: 30px;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
}

.card-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.2);
}

.card-number {
  font-family: monospace;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder label,
.card-dates label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.card-holder span,
.card-dates span {
  font-size: 0.9rem;
  font-weight: 700;
}

/* Limit Bar Progress */
.card-limit-progress-box {
  margin-top: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
}

.limit-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.limit-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.limit-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #f43f5e);
  border-radius: 3px;
  transition: width var(--transition-slow);
}

/* Invoice Section Card */
.invoice-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.invoice-amount {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-warning);
}
