﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   NRI AutoPilot â€” Global Design System
   Futuristic Â· Mobile-First Â· World-Class UI
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* â”€â”€ CSS Custom Properties (Design Tokens) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  /* Brand Palette */
  --ap-primary:       #22C55E;
  --ap-primary-light: #16A34A;
  --ap-primary-dark:  #15803D;
  --ap-accent:        #06B6D4;
  --ap-accent-light:  #0891B2;
  --ap-gold:          #D97706;
  --ap-gold-light:    #B45309;
  --ap-success:       #16A34A;
  --ap-warning:       #D97706;
  --ap-danger:        #DC2626;
  --ap-info:          #2563EB;

  /* Backgrounds — Light Theme */
  --ap-bg:            #F0FDF4;
  --ap-bg-2:          #ECFDF5;
  --ap-bg-3:          #DCFCE7;
  --ap-bg-card:       #FFFFFF;
  --ap-bg-glass:      rgba(255,255,255,0.80);

  /* Borders */
  --ap-border:        rgba(0,0,0,0.09);
  --ap-border-hover:  rgba(34,197,94,0.5);

  /* Text — dark on light */
  --ap-text:          #111827;
  --ap-text-muted:    #4B5563;
  --ap-text-dim:      #9CA3AF;

  /* Gradients */
  --ap-grad-primary:  linear-gradient(135deg, #22C55E 0%, #15803D 100%);
  --ap-grad-gold:     linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --ap-grad-success:  linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  --ap-grad-dark:     linear-gradient(180deg, #ECFDF5 0%, #F0FDF4 100%);
  --ap-grad-card:     linear-gradient(145deg, #FFFFFF 0%, #F0FDF4 100%);
  --ap-grad-glow:     radial-gradient(circle at 50% 0%, rgba(34,197,94,0.08) 0%, transparent 70%);

  /* Shadows */
  --ap-shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --ap-shadow:        0 4px 20px rgba(0,0,0,0.10);
  --ap-shadow-lg:     0 10px 40px rgba(0,0,0,0.12);
  --ap-shadow-glow:   0 0 30px rgba(34,197,94,0.20);
  --ap-shadow-gold:   0 0 20px rgba(245,158,11,0.20);

  /* Radii */
  --ap-radius-sm:     8px;
  --ap-radius:        14px;
  --ap-radius-lg:     20px;
  --ap-radius-xl:     28px;
  --ap-radius-pill:   999px;

  /* Spacing */
  --ap-sidebar-w:     270px;

  /* Transitions */
  --ap-trans:         all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ap-trans-slow:    all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* â”€â”€ Base Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--ap-bg);
  color: var(--ap-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* â”€â”€ Typography â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ap-text);
}

.ap-display { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
.ap-title   { font-size: clamp(1.5rem, 3vw, 2rem); }
.ap-subtitle{ font-size: 1.1rem; color: var(--ap-text-muted); }
.ap-label   { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--ap-text-dim); }
.ap-value   { font-size: 1.6rem; font-weight: 800; }

/* â”€â”€ Gradient Text â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gradient-text {
  background: var(--ap-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: var(--ap-grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* â”€â”€ Glass Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-card {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  padding: 1.5rem;
  transition: var(--ap-trans);
  position: relative;
  overflow: hidden;
  color: var(--ap-text);
  text-decoration: none;
}
.ap-card:hover {
  border-color: var(--ap-border-hover);
  box-shadow: var(--ap-shadow-glow);
  transform: translateY(-2px);
}
.ap-card-glass {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--ap-radius-lg);
}

/* Glow accent line at top of card */
.ap-card-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ap-grad-primary);
}

/* â”€â”€ Stat Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  transition: var(--ap-trans);
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--ap-grad-primary);
  transform: scaleX(0);
  transition: var(--ap-trans);
}
.stat-card:hover::after { transform: scaleX(1); }
.stat-card:hover { border-color: var(--ap-border-hover); transform: translateY(-3px); box-shadow: var(--ap-shadow-glow); }
.stat-card .stat-icon { font-size: 1.4rem; margin-bottom: .6rem; opacity: .8; }
.stat-card .stat-label { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--ap-text-muted); margin-bottom: .3rem; }
.stat-card .stat-value { font-size: 1.35rem; font-weight: 800; color: var(--ap-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card .stat-prefix { font-size: .8rem; color: var(--ap-text-muted); }

/* Card colour variants */
.sc-purple .stat-icon { color: var(--ap-primary-light); }
.sc-cyan   .stat-icon { color: var(--ap-accent); }
.sc-gold   .stat-icon { color: var(--ap-gold); }
.sc-green  .stat-icon { color: var(--ap-success); }
.sc-red    .stat-icon { color: var(--ap-danger); }
.sc-blue   .stat-icon { color: var(--ap-info); }

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--ap-radius-pill);
  font-weight: 600;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  transition: var(--ap-trans);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.ap-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--ap-trans);
}
.ap-btn:hover::before { background: rgba(255,255,255,0.08); }
.ap-btn:active { transform: scale(0.97); }

.ap-btn-primary {
  background: var(--ap-grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(34,197,94,0.4);
}
.ap-btn-primary:hover { box-shadow: 0 6px 25px rgba(34,197,94,0.6); transform: translateY(-1px); color: #fff; }

.ap-btn-gold {
  background: var(--ap-grad-gold);
  color: #fff;
  box-shadow: 0 4px 15px rgba(245,158,11,0.4);
}
.ap-btn-gold:hover { box-shadow: 0 6px 25px rgba(245,158,11,0.5); color: #fff; }

.ap-btn-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.ap-btn-success:hover { box-shadow: 0 6px 25px rgba(16,185,129,0.5); color: #fff; }

.ap-btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239,68,68,0.3);
}
.ap-btn-danger:hover { box-shadow: 0 6px 25px rgba(239,68,68,0.5); color: #fff; }

.ap-btn-ghost {
  background: var(--ap-bg-glass);
  color: var(--ap-text-muted);
  border: 1px solid var(--ap-border);
}
.ap-btn-ghost:hover { border-color: var(--ap-primary); color: var(--ap-primary-light); }

.ap-btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.ap-btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.ap-btn-full { width: 100%; justify-content: center; }
.ap-btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* â”€â”€ Status Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: var(--ap-radius-pill);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.ap-badge-pending   { background: rgba(107,114,128,0.12); color: #6B7280; border: 1px solid rgba(107,114,128,0.25); }
.ap-badge-active    { background: rgba(217,119,6,0.12);  color: #B45309; border: 1px solid rgba(217,119,6,0.3); }
.ap-badge-completed { background: rgba(22,163,74,0.12);  color: #15803D; border: 1px solid rgba(22,163,74,0.3); }
.ap-badge-expired   { background: rgba(220,38,38,0.10);  color: #DC2626; border: 1px solid rgba(220,38,38,0.25); }
.ap-badge-skipped   { background: rgba(234,88,12,0.10);  color: #C2410C; border: 1px solid rgba(234,88,12,0.25); }
.ap-badge-pulse::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* â”€â”€ Form Controls â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-form-group { margin-bottom: 1.2rem; }
.ap-form-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ap-text-muted);
  margin-bottom: .4rem;
}
.ap-form-input {
  width: 100%;
  background: var(--ap-bg-3);
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: .75rem 1rem;
  color: var(--ap-text);
  font-size: .92rem;
  transition: var(--ap-trans);
  outline: none;
}
.ap-form-input:focus {
  border-color: var(--ap-primary);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}
.ap-form-input::placeholder { color: var(--ap-text-dim); }
.ap-form-input-icon { position: relative; }
.ap-form-input-icon .ap-form-input { padding-left: 2.8rem; }
.ap-form-input-icon .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ap-text-dim);
  font-size: 1rem;
}
.ap-form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-table-wrap { overflow-x: auto; border-radius: var(--ap-radius); }
.ap-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.ap-table thead tr { background: var(--ap-bg-3); }
.ap-table th {
  padding: 12px 16px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--ap-text-dim);
  text-align: left;
  border-bottom: 1px solid var(--ap-border);
  white-space: nowrap;
}
.ap-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--ap-text);
  vertical-align: middle;
}
.ap-table tbody tr {
  transition: background .15s;
}
.ap-table tbody tr:hover { background: rgba(34,197,94,0.05); }
.ap-table tbody tr:last-child td { border-bottom: none; }

/* â”€â”€ Timeline / Month Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}
.month-cell {
  background: var(--ap-bg-card);
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 1rem .8rem;
  text-align: center;
  transition: var(--ap-trans);
  position: relative;
  cursor: default;
}
.month-cell.mc-completed { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.05); }
.month-cell.mc-active    { border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.06); animation: pulse-border 2s infinite; }
.month-cell.mc-pending   { border-color: rgba(107,114,128,0.25); opacity: .8; }
.month-cell.mc-skipped   { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }
.month-cell.mc-current   { box-shadow: 0 0 0 2px var(--ap-primary), var(--ap-shadow-glow); }

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
  50%       { box-shadow: 0 0 0 4px rgba(245,158,11,0.2); }
}

.month-cell .mc-num   { font-size: .65rem; font-weight: 700; color: var(--ap-text-dim); text-transform: uppercase; letter-spacing: .6px; }
.month-cell .mc-amt   { font-size: 1rem; font-weight: 800; margin: .3rem 0; }
.month-cell .mc-date  { font-size: .62rem; color: var(--ap-text-dim); }
.month-cell .mc-check { position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ap-success); display: flex; align-items: center; justify-content: center; font-size: .55rem; color: #fff; }

/* â”€â”€ Progress Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-progress { background: rgba(0,0,0,0.08); border-radius: var(--ap-radius-pill); height: 8px; overflow: hidden; }
.ap-progress-bar {
  height: 100%;
  border-radius: var(--ap-radius-pill);
  background: var(--ap-grad-primary);
  transition: width .8s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.ap-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Large progress variant */
.ap-progress-lg { height: 14px; border-radius: 7px; }

/* â”€â”€ Glow Orbs (decorative) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .06;
}
.ap-glow-1 { width: 500px; height: 500px; background: var(--ap-primary); top: -200px; right: -100px; }
.ap-glow-2 { width: 400px; height: 400px; background: var(--ap-accent);  bottom: -150px; left: -100px; }

/* â”€â”€ Alerts / Toast â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-alert {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.2rem;
  border-radius: var(--ap-radius);
  border: 1px solid;
  font-size: .88rem;
  margin-bottom: 1rem;
}
.ap-alert-success { background: rgba(22,163,74,0.08);   border-color: rgba(22,163,74,0.3);   color: #15803D; }
.ap-alert-error   { background: rgba(220,38,38,0.07);   border-color: rgba(220,38,38,0.3);   color: #991B1B; }
.ap-alert-warning { background: rgba(217,119,6,0.08);   border-color: rgba(217,119,6,0.3);   color: #92400E; }
.ap-alert-info    { background: rgba(37,99,235,0.07);   border-color: rgba(37,99,235,0.3);   color: #1E40AF; }

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.ap-toast {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.2rem;
  border-radius: var(--ap-radius);
  background: var(--ap-bg-3);
  border: 1px solid var(--ap-border);
  box-shadow: var(--ap-shadow-lg);
  min-width: 280px;
  max-width: 400px;
  font-size: .85rem;
  animation: slide-in-right .3s ease;
}
@keyframes slide-in-right {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* â”€â”€ Loading Spinner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(0,0,0,0.10);
  border-top-color: var(--ap-primary-light);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* â”€â”€ Divider â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ap-divider {
  border: none;
  border-top: 1px solid var(--ap-border);
  margin: 1.5rem 0;
}
.ap-section-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--ap-text-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ap-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ap-border);
}

/* â”€â”€ Utility â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.text-primary  { color: var(--ap-primary-light) !important; }
.text-accent   { color: var(--ap-accent) !important; }
.text-gold     { color: var(--ap-gold) !important; }
.text-success  { color: var(--ap-success) !important; }
.text-danger   { color: var(--ap-danger) !important; }
.text-muted    { color: var(--ap-text-muted) !important; }
.text-dim      { color: var(--ap-text-dim) !important; }
.fw-800        { font-weight: 800; }
.fw-700        { font-weight: 700; }
.fw-600        { font-weight: 600; }
.rounded-pill  { border-radius: var(--ap-radius-pill); }
.gap-1         { gap: .25rem; }
.gap-2         { gap: .5rem; }
.gap-3         { gap: .75rem; }
.gap-4         { gap: 1rem; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.w-100         { width: 100%; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-auto { margin-top: auto; }

/* â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(34,197,94,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(34,197,94,0.7); }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .month-grid { grid-template-columns: repeat(3, 1fr); }
  .ap-card { padding: 1rem; }
  .ap-value { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .month-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { padding: .9rem; }
  .stat-card .stat-value { font-size: 1.1rem; }
}

/* â”€â”€ Page entrance animations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fade-in-up {
  animation: fade-in-up .5s ease both;
}
.fade-in-up-1 { animation-delay: .1s; }
.fade-in-up-2 { animation-delay: .2s; }
.fade-in-up-3 { animation-delay: .3s; }
.fade-in-up-4 { animation-delay: .4s; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€ Auth pages â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--ap-bg);
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--ap-bg-card);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-xl);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--ap-shadow-lg), 0 0 60px rgba(34,197,94,0.1);
}
.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  gap: .5rem;
}
.auth-logo-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--ap-grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--ap-shadow-glow);
}
