/* ═══════════════════════════════════════════════════════
   STUDENT PORTAL — fee-payment.css
   Fee stat card, reminder banner, current month card,
   status badge, payment history pills.
   ═══════════════════════════════════════════════════════ */

/* ── Stat card dynamic states ── */
.fee-stat-card.fee-paid {
  --accent: #10b981;
}

.fee-stat-card.fee-unpaid {
  --accent: #ef4444;
}

.fee-stat-card.fee-pending {
  --accent: #f59e0b;
}

.fee-stat-card.fee-paid::before {
  background: var(--green);
}

.fee-stat-card.fee-unpaid::before {
  background: var(--red);
}

.fee-stat-card.fee-pending::before {
  background: var(--amber);
}

.fee-stat-badge {
  font-family: 'Sora', sans-serif;
  font-size: 1rem !important;
  font-weight: 800;
  white-space: nowrap;
}

.fee-stat-badge.paid {
  color: var(--green);
}

.fee-stat-badge.unpaid {
  color: var(--red);
}

.fee-stat-badge.pending {
  color: var(--amber);
}

/* ── Reminder Banner ── */
.fee-reminder-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f1 100%);
  border: 1.5px solid #fca5a5;
  border-left: 5px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  animation: reminderPulse 2.5s ease-in-out infinite;
}

@keyframes reminderPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08);
  }
}

.fee-reminder-banner.hidden {
  display: none;
}

.fee-reminder-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.fee-reminder-body {
  flex: 1;
  min-width: 0;
}

.fee-reminder-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 3px;
}

.fee-reminder-text {
  font-size: 0.85rem;
  color: #b91c1c;
  line-height: 1.5;
}

.fee-reminder-cta {
  flex-shrink: 0;
  padding: 9px 18px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}

.fee-reminder-cta:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* ── Current Month Card ── */
.fee-current-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.fee-current-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  transition: background 0.3s;
}

.fee-current-card.fee-unpaid::before {
  background: var(--red);
}

.fee-current-card.fee-pending::before {
  background: var(--amber);
}

/* Decorative circle background */
.fee-current-card::after {
  content: '₹';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9rem;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.025);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.fee-current-left {
  flex: 1;
}

.fee-current-month {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 3px;
}

.fee-current-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.fee-amount-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.fee-amount-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  font-weight: 500;
}

.fee-amount-value {
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.fee-due-row {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.fee-due-row.overdue {
  color: var(--red);
  font-weight: 600;
}

.fee-current-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* ── Status badge ── */
.fee-status-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border-radius: 30px;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #dcfce7;
  color: #15803d;
  border: 2px solid #86efac;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.fee-status-badge.unpaid {
  background: #fef2f2;
  color: var(--red);
  border-color: #fca5a5;
}

.fee-status-badge.pending {
  background: #fef9c3;
  color: #92400e;
  border-color: #fde047;
}

.fee-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: feePulse 2s ease-in-out infinite;
}

.fee-status-badge.unpaid .fee-badge-dot {
  background: var(--red);
  animation: feePulse 1.2s ease-in-out infinite;
}

.fee-status-badge.pending .fee-badge-dot {
  background: var(--amber);
}

@keyframes feePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.25);
  }
}

.fee-status-badge.unpaid .fee-badge-dot {
  animation-name: feePulseRed;
}

@keyframes feePulseRed {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.25);
  }
}

.fee-paid-date {
  font-size: 0.8rem;
  color: var(--green);
  font-weight: 600;
}

.fee-paid-date.hidden {
  display: none;
}

/* ── Fee History Table Pills ── */
.fee-pill-paid {
  background: #dcfce7;
  color: #15803d;
}

.fee-pill-unpaid {
  background: #fef2f2;
  color: var(--red);
}

.fee-pill-pending {
  background: #fef9c3;
  color: #92400e;
}

.fee-receipt-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  transition: background 0.15s, color 0.15s;
}

.fee-receipt-link:hover {
  background: var(--accent);
  color: #fff;
}
