/* ============================================================
   Offline Assessment - Design System v2
   Modern gradient theme with glass-morphism, animations, SVG art
   ============================================================ */

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

:root {
  /* Palette - deep indigo to violet, accent teal */
  --p-50:  #eef2ff;
  --p-100: #e0e7ff;
  --p-200: #c7d2fe;
  --p-300: #a5b4fc;
  --p-400: #818cf8;
  --p-500: #6366f1;
  --p-600: #4f46e5;
  --p-700: #4338ca;
  --p-800: #3730a3;
  --p-900: #312e81;
  --p-950: #1e1b4b;

  --accent:      #06b6d4;
  --accent-2:    #22d3ee;
  --success:     #10b981;
  --success-2:   #34d399;
  --warn:        #f59e0b;
  --warn-2:      #fbbf24;
  --danger:      #ef4444;
  --danger-2:    #f87171;

  --ink-1: #0f172a;
  --ink-2: #1e293b;
  --ink-3: #334155;
  --ink-4: #475569;
  --ink-5: #64748b;
  --ink-6: #94a3b8;
  --ink-7: #cbd5e1;
  --ink-8: #e2e8f0;
  --ink-9: #f1f5f9;
  --ink-10: #f8fafc;

  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --grad-primary-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #fdf4ff 100%);
  --grad-sidebar: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
  --grad-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --grad-accent: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
  --grad-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --grad-warn: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --grad-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  --grad-teal: linear-gradient(135deg, #14b8a6 0%, #2dd4bf 100%);

  --shadow-sm:  0 1px 2px 0 rgba(15, 23, 42, .05);
  --shadow:     0 4px 6px -1px rgba(15, 23, 42, .08), 0 2px 4px -2px rgba(15, 23, 42, .06);
  --shadow-md:  0 10px 15px -3px rgba(15, 23, 42, .08), 0 4px 6px -4px rgba(15, 23, 42, .05);
  --shadow-lg:  0 20px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .05);
  --shadow-xl:  0 25px 50px -12px rgba(15, 23, 42, .25);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, .35);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;

  --border-color: rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  color: var(--ink-2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.oa-app {
  background: linear-gradient(135deg, #f5f7ff 0%, #faf5ff 100%);
  min-height: 100vh;
  position: relative;
}

/* animated blobs in the background */
body.oa-app::before,
body.oa-app::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
body.oa-app::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a5b4fc, transparent);
  top: -150px; right: -150px;
  animation: floatSlow 20s ease-in-out infinite;
}
body.oa-app::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f0abfc, transparent);
  bottom: -100px; left: -100px;
  animation: floatSlow 25s ease-in-out infinite reverse;
}
@keyframes floatSlow {
  0%,100% { transform: translate(0,0); }
  50%     { transform: translate(60px,-40px); }
}

/* --- Font family for headings --- */
h1, h2, h3, h4, h5, h6, .display, .oa-brand span {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -.01em;
  color: var(--ink-1);
}

/* ==================== SIDEBAR ==================== */
.oa-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--grad-sidebar);
  color: rgba(255,255,255,.85);
  overflow-y: auto;
  z-index: 200;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
  box-shadow: var(--shadow-xl);
}
.oa-sidebar::-webkit-scrollbar { width: 6px; }
.oa-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 3px; }

.oa-brand {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.5rem 1.5rem 1.25rem;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.oa-brand::after {
  content: ''; position: absolute; bottom: -1px; left: 1.5rem; right: 1.5rem; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
}
.oa-brand i {
  width: 42px; height: 42px;
  background: var(--grad-accent);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 20px rgba(6, 182, 212, .4);
  color: #fff;
}
.oa-brand span { line-height: 1.1; }
.oa-brand small { display: block; font-size: .7rem; opacity: .6; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }

.oa-nav { padding: 1rem 0; }
.oa-nav .nav-section {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1.25rem 1.5rem .5rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}
.oa-nav a {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem 1.5rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-left: 3px solid transparent;
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s ease;
  position: relative;
}
.oa-nav a i {
  width: 20px;
  font-size: 1.05rem;
  opacity: .75;
  transition: transform .2s ease;
}
.oa-nav a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-left-color: rgba(255,255,255,.3);
}
.oa-nav a:hover i { transform: scale(1.15); opacity: 1; }
.oa-nav a.active {
  background: linear-gradient(90deg, rgba(99,102,241,.25) 0%, transparent 100%);
  color: #fff;
  border-left-color: var(--accent-2);
  font-weight: 600;
}
.oa-nav a.active i { color: var(--accent-2); opacity: 1; }
.oa-nav a.active::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 20px; background: var(--accent-2); border-radius: 2px 0 0 2px;
}

/* ==================== MAIN + TOPBAR ==================== */
.oa-main {
  margin-left: 260px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}

.oa-topbar {
  height: 68px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky; top: 0;
  z-index: 100;
}
.oa-crumb {
  flex: 1;
  font-size: .95rem;
  color: var(--ink-4);
  font-weight: 500;
}
.oa-crumb .crumb-icon {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--grad-primary-soft);
  color: var(--p-600);
  align-items: center; justify-content: center;
  margin-right: .6rem;
}
.oa-user {
  display: flex; align-items: center; gap: .75rem;
}
.oa-user .user-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .85rem .4rem .45rem;
  background: var(--ink-10);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--ink-2);
  font-weight: 500;
}
.oa-user .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .75rem;
  box-shadow: 0 4px 10px rgba(99,102,241,.35);
}
.oa-user .badge {
  border-radius: 999px;
  padding: .4rem .8rem;
  font-weight: 500;
  font-size: .8rem;
  display: inline-flex; align-items: center; gap: .35rem;
}
.oa-user .badge i { font-size: .95rem; }

.oa-content { flex: 1; padding: 1.5rem !important; }
.oa-footer {
  background: rgba(255,255,255,.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  color: var(--ink-5);
}

@media (max-width: 992px) {
  .oa-sidebar { transform: translateX(-100%); }
  .oa-sidebar.open { transform: translateX(0); }
  .oa-main { margin-left: 0; }
}

/* ==================== AUTH SCREENS ==================== */
.oa-auth-body {
  background: var(--grad-hero);
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
/* Animated background shapes */
.oa-auth-body::before,
.oa-auth-body::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.oa-auth-body::before {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #fbbf24, transparent);
  top: -100px; left: -100px;
  opacity: .5;
  animation: floatSlow 15s ease-in-out infinite;
}
.oa-auth-body::after {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -150px; right: -100px;
  opacity: .5;
  animation: floatSlow 18s ease-in-out infinite reverse;
}

/* soft floating orbs */
.oa-auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(320px, 460px);
  gap: 2.5rem;
  align-items: stretch;
  max-width: 1000px;
  width: 100%;
}
@media (max-width: 900px) {
  .oa-auth-shell { grid-template-columns: 1fr; max-width: 460px; }
  .oa-auth-illustration { display: none; }
}

.oa-auth-illustration {
  color: #fff;
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: center;
  gap: 1.5rem;
  position: relative;
}
.oa-auth-illustration .badge-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  padding: .4rem .85rem;
  border-radius: 999px;
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  width: fit-content;
}
.oa-auth-illustration h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 0;
}
.oa-auth-illustration h1 .accent {
  background: linear-gradient(90deg, #fbbf24, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.oa-auth-illustration p {
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.oa-auth-illustration .feature-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.oa-auth-illustration .feature-list li {
  display: flex; align-items: center; gap: .65rem;
  color: rgba(255,255,255,.9);
  font-size: .9rem;
}
.oa-auth-illustration .feature-list li i {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

.oa-auth-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,.5);
  position: relative;
  overflow: hidden;
}
.oa-auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-primary);
}

.oa-auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}
.oa-auth-brand .brand-mark {
  width: 64px; height: 64px;
  margin: 0 auto 1rem;
  background: var(--grad-primary);
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.9rem;
  box-shadow: 0 12px 30px rgba(99,102,241,.4);
  position: relative;
}
.oa-auth-brand .brand-mark::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  background: var(--grad-primary);
  opacity: .25;
  z-index: -1;
  filter: blur(15px);
}
.oa-auth-brand > div:first-of-type {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--ink-1);
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.oa-auth-brand > .text-muted {
  color: var(--ink-5) !important;
  font-size: .82rem;
  font-weight: 500;
}

/* ==================== CARDS ==================== */
.oa-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.oa-card:hover { box-shadow: var(--shadow); }
.oa-card h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--ink-1);
}

/* ==================== STAT CARDS ==================== */
.stat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all .25s cubic-bezier(.16,1,.3,1);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; right: 0; width: 90px; height: 90px;
  background: var(--grad-primary-soft);
  border-radius: 0 0 0 100%;
  opacity: .6;
  transition: transform .3s;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--p-200);
}
.stat-card:hover::before { transform: scale(1.4); }
.stat-card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  background: var(--grad-primary);
  box-shadow: 0 8px 20px rgba(99,102,241,.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.stat-card.tone-success .icon { background: var(--grad-success); box-shadow: 0 8px 20px rgba(16,185,129,.3); }
.stat-card.tone-warn    .icon { background: var(--grad-warn); box-shadow: 0 8px 20px rgba(245,158,11,.3); }
.stat-card.tone-danger  .icon { background: var(--grad-danger); box-shadow: 0 8px 20px rgba(239,68,68,.3); }
.stat-card.tone-accent  .icon { background: var(--grad-accent); box-shadow: 0 8px 20px rgba(6,182,212,.3); }
.stat-card.tone-teal    .icon { background: var(--grad-teal); box-shadow: 0 8px 20px rgba(20,184,166,.3); }
.stat-card .label {
  color: var(--ink-5);
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .2rem;
  position: relative; z-index: 1;
}
.stat-card .value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink-1);
  line-height: 1.1;
  position: relative; z-index: 1;
}
.stat-card .sub {
  font-size: .75rem;
  color: var(--ink-5);
  margin-top: .15rem;
}

/* Page hero band */
.oa-hero {
  background: linear-gradient(120deg, #eef2ff 0%, #f5f3ff 40%, #fdf4ff 100%);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(99,102,241,.08);
  position: relative;
  overflow: hidden;
}
.oa-hero::before {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.15), transparent);
}
.oa-hero .title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--ink-1);
  margin: 0;
}
.oa-hero .subtitle {
  color: var(--ink-4);
  margin: .35rem 0 0;
  font-size: .95rem;
}
.oa-hero .hero-actions { position: relative; z-index: 1; }

/* ==================== FILTER ROW ==================== */
.filter-row .form-control,
.filter-row .form-select {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ink-8);
  font-size: .9rem;
  transition: all .2s;
}
.filter-row .form-control:focus,
.filter-row .form-select:focus {
  border-color: var(--p-400);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}

/* ==================== FORMS ==================== */
.form-control, .form-select {
  border-radius: 10px;
  border: 1.5px solid var(--ink-8);
  padding: .625rem .85rem;
  font-size: .92rem;
  transition: all .2s;
  color: var(--ink-2);
  background: #fff;
}
.form-control:focus, .form-select:focus {
  border-color: var(--p-500);
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
  outline: none;
}
.form-label {
  font-weight: 500;
  color: var(--ink-3);
  font-size: .85rem;
  margin-bottom: .35rem;
}

/* ==================== BUTTONS ==================== */
.btn {
  font-weight: 500;
  border-radius: 10px;
  padding: .55rem 1.15rem;
  font-size: .9rem;
  transition: all .2s cubic-bezier(.16,1,.3,1);
  border: 1.5px solid transparent;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary {
  background: var(--grad-primary);
  border: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
}
.btn-primary:hover {
  background: var(--grad-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,.45);
}
.btn-outline-primary {
  color: var(--p-600); border-color: var(--p-300); background: #fff;
}
.btn-outline-primary:hover {
  background: var(--p-50); color: var(--p-700); border-color: var(--p-400);
  transform: translateY(-1px);
}
.btn-success { background: var(--grad-success); border: none; color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,.35); }
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,.45); color: #fff; }
.btn-danger { background: var(--grad-danger); border: none; color: #fff; box-shadow: 0 4px 14px rgba(239,68,68,.35); }
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,68,68,.45); color: #fff; }
.btn-warning { background: var(--grad-warn); border: none; color: #fff; box-shadow: 0 4px 14px rgba(245,158,11,.35); }
.btn-warning:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(245,158,11,.45); color: #fff; }
.btn-outline-secondary { color: var(--ink-3); border-color: var(--ink-8); background: #fff; }
.btn-outline-secondary:hover { background: var(--ink-9); border-color: var(--ink-6); }
.btn-outline-danger { color: var(--danger); border-color: rgba(239,68,68,.35); background: #fff; }
.btn-outline-danger:hover { background: #fef2f2; border-color: var(--danger); }
.btn-outline-warning { color: var(--warn); border-color: rgba(245,158,11,.35); background: #fff; }
.btn-outline-warning:hover { background: #fffbeb; border-color: var(--warn); }
.btn-outline-success { color: var(--success); border-color: rgba(16,185,129,.35); background: #fff; }
.btn-outline-success:hover { background: #ecfdf5; border-color: var(--success); }

.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; border-radius: 8px; }
.btn i { line-height: 1; }

/* ==================== TABLES ==================== */
.oa-table {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.oa-table table { margin: 0; }
.oa-table thead th {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1.5px solid var(--ink-8);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-4);
  font-weight: 700;
  padding: .9rem 1rem;
}
.oa-table tbody td {
  vertical-align: middle;
  font-size: .9rem;
  color: var(--ink-2);
  padding: .85rem 1rem;
  border-color: var(--ink-9);
}
.oa-table tbody tr { transition: background .15s; }
.oa-table tbody tr:hover { background: var(--ink-10); }
.oa-table tbody tr:last-child td { border-bottom: 0; }

/* ==================== BADGES ==================== */
.badge-status {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .72rem;
  border: 1px solid transparent;
}
.badge-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.badge-status.Pending, .badge-status.Draft { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.badge-status.Submitted, .badge-status.Processing, .badge-status.Scheduled, .badge-status.PunchedIn,
.badge-status.Whitelist { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.badge-status.Approved, .badge-status.Paid, .badge-status.Completed, .badge-status.PunchedOut,
.badge-status.Incentive { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
.badge-status.Rejected, .badge-status.Failed, .badge-status.Cancelled,
.badge-status.Blacklist, .badge-status.Deduction { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.badge-status.PartiallyApproved, .badge-status.Hold, .badge-status.ClarificationRequired,
.badge-status.Expense { background: #fef9c3; color: #713f12; border-color: #fef08a; }

/* ==================== TABS ==================== */
.nav-tabs {
  border-bottom: 2px solid var(--ink-8);
  gap: .25rem;
}
.nav-tabs .nav-link {
  border: none;
  color: var(--ink-5);
  font-weight: 500;
  padding: .75rem 1.25rem;
  border-radius: 10px 10px 0 0;
  position: relative;
  transition: all .2s;
}
.nav-tabs .nav-link:hover { color: var(--p-600); background: var(--p-50); }
.nav-tabs .nav-link.active {
  color: var(--p-700);
  background: transparent;
  border-bottom: 2px solid var(--p-600);
  margin-bottom: -2px;
}

/* ==================== GALLERY ==================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s cubic-bezier(.16,1,.3,1);
  box-shadow: var(--shadow-sm);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--p-300);
}
.gallery-item .thumb {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.gallery-item .thumb .placeholder {
  font-size: 2.8rem;
  color: var(--ink-6);
}
.gallery-item .meta {
  padding: .75rem 1rem;
}
.gallery-item .meta .title {
  font-weight: 600;
  color: var(--ink-1);
  font-size: .85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-item .meta .sub { color: var(--ink-5); font-size: .75rem; margin-top: .2rem; }

/* ==================== TOASTS ==================== */
.oa-toast-wrap {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 1080;
  display: flex; flex-direction: column;
  gap: .6rem;
  max-width: 380px;
}
.oa-toast {
  background: #fff;
  color: var(--ink-1);
  padding: .9rem 1.1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  font-size: .88rem;
  font-weight: 500;
  border-left: 4px solid var(--p-500);
  animation: slideInRight .3s cubic-bezier(.16,1,.3,1);
}
.oa-toast.success { border-left-color: var(--success); }
.oa-toast.error   { border-left-color: var(--danger); }
.oa-toast.warn    { border-left-color: var(--warn); }
@keyframes slideInRight {
  from { transform: translateX(400px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ==================== UPLOADER ==================== */
.oa-drop {
  border: 2px dashed var(--ink-7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  cursor: pointer;
  transition: all .2s;
  color: var(--ink-4);
}
.oa-drop:hover, .oa-drop.hover {
  border-color: var(--p-400);
  background: var(--p-50);
  color: var(--p-700);
}
.oa-drop i {
  font-size: 2.5rem !important;
  color: var(--p-500);
  display: block;
  margin-bottom: .5rem;
}
.oa-file-row {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .85rem;
  background: #fff;
  border: 1px solid var(--ink-8);
  border-radius: 10px;
  margin-top: .5rem;
  transition: all .2s;
}
.oa-file-row:hover { border-color: var(--p-300); background: var(--p-50); }
.oa-file-row .name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: .85rem; color: var(--ink-2); font-weight: 500;
}
.oa-file-row .progress {
  height: 5px; flex: 1; max-width: 100px;
  background: var(--ink-9); border-radius: 4px;
}
.oa-file-row .progress-bar {
  background: var(--grad-primary); border-radius: 4px;
}
.oa-file-row .progress-bar.bg-success { background: var(--grad-success) !important; }
.oa-file-row .progress-bar.bg-danger  { background: var(--grad-danger) !important; }

/* ==================== ALERTS ==================== */
.alert {
  border-radius: 12px;
  border: none;
  font-size: .9rem;
  padding: .85rem 1.1rem;
  display: flex; align-items: flex-start; gap: .65rem;
}
.alert-danger { background: #fef2f2; color: #7f1d1d; border-left: 4px solid var(--danger); }
.alert-success { background: #f0fdf4; color: #14532d; border-left: 4px solid var(--success); }
.alert-warning { background: #fffbeb; color: #78350f; border-left: 4px solid var(--warn); }
.alert-info { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ==================== MODAL ==================== */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.modal-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
}
.modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--ink-1);
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  background: var(--ink-10);
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
}

/* ==================== MISC ==================== */
.form-check-input:checked {
  background-color: var(--p-600);
  border-color: var(--p-600);
}
.form-check-input:focus {
  border-color: var(--p-400);
  box-shadow: 0 0 0 4px rgba(99,102,241,.15);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-8); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-6); }

/* Fade-in for content cards */
.oa-card, .stat-card, .oa-table, .gallery-item, .oa-hero {
  animation: fadeUp .4s cubic-bezier(.16,1,.3,1) backwards;
}
.stat-card:nth-child(1) { animation-delay: .00s; }
.stat-card:nth-child(2) { animation-delay: .05s; }
.stat-card:nth-child(3) { animation-delay: .10s; }
.stat-card:nth-child(4) { animation-delay: .15s; }
.stat-card:nth-child(5) { animation-delay: .20s; }
.stat-card:nth-child(6) { animation-delay: .25s; }
.stat-card:nth-child(7) { animation-delay: .30s; }
.stat-card:nth-child(8) { animation-delay: .35s; }
@keyframes fadeUp {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Utility */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem;
  background: var(--p-50);
  color: var(--p-700);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  border: 1px solid var(--p-100);
}
