/* ════════════════════════════════════════════════════
   STRIKIN FINANCE PORTAL — DESIGN SYSTEM
   Brand Colors:
   Dark    #150E41  #192A56  #152956  #30363F  #3B1C60
   Accents #FC3578  #E73F18  #C3F458  #D4EE14  #FFB82D
   Neutral #000000  #ffffff
════════════════════════════════════════════════════ */

:root {
  --bg:         #0a0720;
  --surface:    #150E41;
  --surface2:   #1a1352;
  --card:       #192A56;
  --card2:      #152956;
  --border:     rgba(252,53,120,0.15);
  --border2:    rgba(255,255,255,0.08);

  --pink:       #FC3578;
  --orange:     #E73F18;
  --lime:       #C3F458;
  --yellow:     #D4EE14;
  --amber:      #FFB82D;
  --purple:     #3B1C60;
  --white:      #ffffff;
  --text-muted: rgba(255,255,255,0.45);
  --text-dim:   rgba(255,255,255,0.25);

  --radius:     12px;
  --radius-lg:  18px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #root {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(252,53,120,0.3); border-radius: 99px; }

/* ── LAYOUT ──────────────────────────────────────── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border2);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border2);
}

.sidebar-brand {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.sidebar-subtitle {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
  font-weight: 600;
}

.sidebar-section {
  padding: 16px 12px 8px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 12px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
  font-family: inherit;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(252,53,120,0.18), rgba(252,53,120,0.08));
  color: var(--pink);
  font-weight: 600;
  border: 1px solid rgba(252,53,120,0.2);
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px 12px;
  border-top: 1px solid var(--border2);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.user-role {
  font-size: 11px;
  color: var(--text-dim);
}

/* ── MAIN CONTENT ────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border2);
  background: rgba(10,7,32,0.8);
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.page-title-bar {
  font-size: 17px;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #c91f5a);
  color: #fff;
  box-shadow: 0 4px 14px rgba(252,53,120,0.35);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(252,53,120,0.5);
}

.btn-lime {
  background: linear-gradient(135deg, var(--lime), #a8d940);
  color: #0a0720;
}
.btn-lime:hover:not(:disabled) { transform: translateY(-1px); }

.btn-amber {
  background: linear-gradient(135deg, var(--amber), #e0951f);
  color: #0a0720;
}

.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  border: 1px solid var(--border2);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.btn-danger {
  background: rgba(231,63,24,0.15);
  color: var(--orange);
  border: 1px solid rgba(231,63,24,0.3);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(231,63,24,0.25);
}

.btn-sm { padding: 6px 13px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ── SYNC BUTTON — hero action ───────────────────── */
.sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  color: #0a0720;
  background: linear-gradient(135deg, var(--lime), var(--yellow));
  box-shadow: 0 4px 18px rgba(195,244,88,0.35);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sync-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(195,244,88,0.5);
}

.sync-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.sync-btn.syncing {
  animation: syncPulse 1.5s ease-in-out infinite;
}

@keyframes syncPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(195,244,88,0.35); }
  50% { box-shadow: 0 4px 28px rgba(195,244,88,0.65); }
}

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.card-sm { padding: 16px; }

/* ── STAT CARDS ──────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.pink::before  { background: linear-gradient(90deg, var(--pink), transparent); }
.stat-card.lime::before  { background: linear-gradient(90deg, var(--lime), transparent); }
.stat-card.amber::before { background: linear-gradient(90deg, var(--amber), transparent); }
.stat-card.orange::before{ background: linear-gradient(90deg, var(--orange), transparent); }
.stat-card.yellow::before{ background: linear-gradient(90deg, var(--yellow), transparent); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-value.pink   { color: var(--pink); }
.stat-value.lime   { color: var(--lime); }
.stat-value.amber  { color: var(--amber); }
.stat-value.orange { color: var(--orange); }
.stat-value.yellow { color: var(--yellow); }

.stat-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* ── TABLE ───────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  background: rgba(25, 42, 86, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

thead tr {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border2);
}

th {
  padding: 16px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
  transition: background 0.2s ease;
}

tbody tr:last-child td { border-bottom: none; }

tbody tr:hover { background: rgba(252,53,120,0.05); }

/* ── BADGES ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pending    { background: rgba(255,184,45,0.15);  color: var(--amber);  border: 1px solid rgba(255,184,45,0.25); }
.badge-approved   { background: rgba(195,244,88,0.12);  color: var(--lime);   border: 1px solid rgba(195,244,88,0.25); }
.badge-rejected   { background: rgba(231,63,24,0.12);   color: var(--orange); border: 1px solid rgba(231,63,24,0.25); }
.badge-paid       { background: rgba(195,244,88,0.15);  color: var(--lime);   border: 1px solid rgba(195,244,88,0.3); }
.badge-sig        { background: rgba(252,53,120,0.12);  color: var(--pink);   border: 1px solid rgba(252,53,120,0.25); }
.badge-new        { background: rgba(212,238,20,0.12);  color: var(--yellow); border: 1px solid rgba(212,238,20,0.25); }
.badge-info       { background: rgba(255,255,255,0.07); color: var(--white);  border: 1px solid var(--border2); }

/* ── FORM ────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.form-group:focus-within .form-label {
  color: var(--pink);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  outline: none;
  appearance: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-input:focus {
  border-color: var(--pink);
  background: rgba(252, 53, 120, 0.03);
  box-shadow: 0 0 0 4px rgba(252, 53, 120, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
}

.form-input::placeholder { color: var(--text-dim); }

select.form-input option { background: var(--surface); color: var(--white); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 7, 32, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal {
  background: linear-gradient(145deg, var(--surface2), #100a30);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: modalScale 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.modal-close {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-close:hover { 
  background: rgba(252,53,120,0.15);
  color: var(--pink); 
  border-color: rgba(252,53,120,0.3);
  transform: rotate(90deg);
}

.modal-body { padding: 28px 32px; }

.modal-footer {
  padding: 20px 32px 28px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.1);
}

/* ── ALERT ───────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-error   { background: rgba(231,63,24,0.12); border: 1px solid rgba(231,63,24,0.3); color: #ff7a5a; }
.alert-success { background: rgba(195,244,88,0.1);  border: 1px solid rgba(195,244,88,0.3); color: var(--lime); }
.alert-info    { background: rgba(252,53,120,0.08); border: 1px solid rgba(252,53,120,0.2); color: var(--pink); }

/* ── SEARCH BAR ──────────────────────────────────── */
.search-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 9px;
  color: var(--white);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.search-input:focus { border-color: rgba(252,53,120,0.4); }
.search-input::placeholder { color: var(--text-dim); }

/* ── FILTER PILL ─────────────────────────────────── */
.pill {
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border2);
  background: none;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}

.pill:hover { border-color: rgba(252,53,120,0.3); color: var(--white); }
.pill.active {
  border-color: var(--pink);
  background: rgba(252,53,120,0.12);
  color: var(--pink);
}

/* ── SECTION HEADER ──────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
}

.section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── EMPTY STATE ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-text { font-size: 15px; font-weight: 600; color: var(--text-muted); }
.empty-sub  { font-size: 13px; margin-top: 6px; }

/* ── SPINNER ─────────────────────────────────────── */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid rgba(255,255,255,0.15);
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

/* ── LOGIN PAGE ──────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(252,53,120,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(59,28,96,0.4) 0%, transparent 60%),
    var(--bg);
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.login-tagline {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ── APPROVAL ROW ACTIONS ────────────────────────── */
.action-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── AMOUNT DISPLAY ──────────────────────────────── */
.amount-large {
  font-size: 22px;
  font-weight: 800;
  color: var(--lime);
}

/* ── PROGRESS BAR ────────────────────────────────── */
.progress-steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.2s;
}

.step-line {
  height: 2px;
  width: 30px;
  flex-shrink: 0;
  transition: background 0.2s;
}

.step-label {
  font-size: 9px;
  font-weight: 600;
  text-align: center;
  margin-top: 5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── DASHBOARD ACTIVITY ──────────────────────────── */
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border2);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-text { font-size: 13px; line-height: 1.5; }
.activity-meta { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.3s ease forwards; }

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border2);
  margin: 18px 0;
}

/* ── TOOLTIP TAG ─────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
}
