@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:wght@300;400;500&family=Inter:wght@300;400;500&display=swap');

/* Dark Theme (Default) */
:root {
  --bg-base: #07090f;
  --bg-surface: #0d1117;
  --bg-card: #111827;
  --bg-card-hover: #161e2e;
  --bg-input: #0d1117;
  --border: rgba(255,255,255,0.07);
  --border-active: rgba(99,255,178,0.35);
  --accent: #63ffb2;
  --accent-dim: rgba(99,255,178,0.1);
  --accent-glow: rgba(99,255,178,0.05);
  --accent2: #6366f1;
  --accent2-dim: rgba(99,102,241,0.15);
  --breadcrumb-link: #63ffb2;
  --breadcrumb-link-hover: #a5b4fc;
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --text-primary: #f1f5f9;
  --text-secondary: #64748b;
  --text-muted: #334155;
  --sidebar-w: 240px;
  --header-h: 60px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.18s ease;
}

/* Light Theme */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --bg-input: #ffffff;
  --border: rgba(0,0,0,0.08);
  --border-active: rgba(99,255,178,0.4);
  --accent: #10b981;
  --accent-dim: rgba(16,185,129,0.1);
  --accent-glow: rgba(16,185,129,0.05);
  --accent2: #6366f1;
  --accent2-dim: rgba(99,102,241,0.15);
  --breadcrumb-link: #0f766e;
  --breadcrumb-link-hover: #4f46e5;
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.12);
  --red: #ef4444;
  --red-dim: rgba(239,68,68,0.12);
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 99px; }

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }

/* ── Layout ── */
.layout { display: flex; min-height: 100vh; }



.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-surface);
    border-right: 1px solid var(--border);

    display: flex;
    flex-direction: column;

    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 100;

    transition: transform var(--transition);
    scroll-behavior: smooth;
}

/* Scrollbar */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.25);
}





.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--border);
}

.logo-mark {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg { width: 18px; height: 18px; color: #07090f; }

.logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.logo-text span { color: var(--accent); }

.sidebar-section { padding: 14px 12px 4px; }

.sidebar-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  margin-bottom: 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 1px;
}

.nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 500; }
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.65; }
.nav-item.active svg { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 99px;
  font-family: 'DM Mono', monospace;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--border);
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
}

.user-card:hover { background: rgba(255,255,255,0.04); }

.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: #fff;
  flex-shrink: 0;
}

.user-name { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-secondary); }

/* ── Main ── */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ── Topbar ── */
.topbar {
  height: var(--header-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; }
.topbar-breadcrumb { font-size: 11.5px; color: var(--text-secondary); margin-top: 1px; }
.topbar-breadcrumb a {
  color: var(--breadcrumb-link);
  text-decoration: none;
  transition: color var(--transition), text-decoration var(--transition);
}
.topbar-breadcrumb a:hover,
.topbar-breadcrumb a:focus-visible {
  color: var(--breadcrumb-link-hover);
  text-decoration: underline;
}
.topbar-spacer { flex: 1; }

.topbar-search {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 12px;
  gap: 8px;
  width: 210px;
  transition: border-color var(--transition);
}

.topbar-search:focus-within { border-color: var(--border-active); }
.topbar-search input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 13px; width: 100%; font-family: inherit; }
.topbar-search input::placeholder { color: var(--text-secondary); }
.topbar-search svg { width: 14px; height: 14px; color: var(--text-secondary); flex-shrink: 0; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}

.icon-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.icon-btn svg { width: 16px; height: 16px; }

.notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  border: 1.5px solid var(--bg-surface);
}

/* ── Page ── */
.page-content { padding: 28px; flex: 1; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color var(--transition);
}

.card:hover { border-color: rgba(255,255,255,0.1); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-title { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 600; }
.card-subtitle { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }

/* ── Stat Cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.stat-card:hover { border-color: rgba(255,255,255,0.12); }
.stat-card:hover::before { opacity: 1; }
.stat-card.green::before { background: var(--accent); }
.stat-card.purple::before { background: var(--accent2); }
.stat-card.amber::before { background: var(--amber); }
.stat-card.red::before { background: var(--red); }

.stat-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.stat-icon svg { width: 18px; height: 18px; }
.stat-icon.green { background: var(--accent-dim); color: var(--accent); }
.stat-icon.purple { background: var(--accent2-dim); color: var(--accent2); }
.stat-icon.amber { background: var(--amber-dim); color: var(--amber); }
.stat-icon.red { background: var(--red-dim); color: var(--red); }

.stat-value { font-family: 'DM Mono', monospace; font-size: 26px; font-weight: 500; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 12px; color: var(--text-secondary); }

.stat-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  margin-top: 8px;
  padding: 2px 7px;
  border-radius: 99px;
}

.stat-delta.up { background: var(--accent-dim); color: var(--accent); }
.stat-delta.down { background: var(--red-dim); color: var(--red); }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed rgba(99,255,178,0.18);
  border-radius: var(--radius-lg);
  padding: 52px 32px;
  text-align: center;
  background: var(--accent-glow);
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: rgba(99,255,178,0.5);
  background: var(--accent-dim);
}

.upload-zone-icon {
  width: 60px; height: 60px;
  background: var(--accent-dim);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent);
}

.upload-zone-icon svg { width: 30px; height: 30px; }

.upload-title { font-family: 'Syne', sans-serif; font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.upload-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 22px; line-height: 1.7; }

.upload-types { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.file-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: #07090f; }
.btn-primary:hover { background: #80ffbf; transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.05); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); }
.btn-ghost { background: none; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.btn-danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn svg { width: 15px; height: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-sm svg { width: 13px; height: 13px; }

/* ── Table ── */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:hover { background: rgba(255,255,255,0.025); }
tbody tr:last-child { border-bottom: none; }
tbody td { padding: 12px 14px; font-size: 13px; vertical-align: middle; }
.td-mono { font-family: 'DM Mono', monospace; font-size: 12px; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 99px;
}

.badge-green { background: var(--accent-dim); color: var(--accent); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-amber { background: var(--amber-dim); color: var(--amber); }
.badge-purple { background: var(--accent2-dim); color: #a5b4fc; }
.badge-gray { background: rgba(255,255,255,0.06); color: var(--text-secondary); }

/* ── Insights ── */
.insight-strip { display: flex; flex-direction: column; gap: 10px; }

.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  transition: background var(--transition);
}

.insight-item:hover { background: rgba(255,255,255,0.04); }

.insight-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.insight-dot.green { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.insight-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.insight-dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }
.insight-dot.purple { background: #a5b4fc; box-shadow: 0 0 6px #a5b4fc; }

.insight-text { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }
.insight-text strong { color: var(--text-primary); font-weight: 500; }

/* ── Progress ── */
.progress-bar { height: 5px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; }

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition);
  border: none;
  background: none;
  font-family: inherit;
}

.tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-7-3 { display: grid; grid-template-columns: 7fr 3fr; gap: 16px; }
.grid-6-4 { display: grid; grid-template-columns: 6fr 4fr; gap: 16px; }

/* ── Processing ── */
.processing-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 99px;
}

@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── File items ── */
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all var(--transition);
  margin-bottom: 8px;
}

.file-item:hover { border-color: rgba(255,255,255,0.1); background: var(--bg-card-hover); }

.file-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 500; }
.file-icon.csv { background: var(--accent-dim); color: var(--accent); }
.file-icon.xlsx { background: var(--accent2-dim); color: #a5b4fc; }
.file-icon.pdf { background: var(--red-dim); color: var(--red); }

.file-name { font-size: 13px; font-weight: 500; }
.file-meta { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ── Inputs ── */
select, input[type="date"], input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  padding: 9px 13px;
  margin: 2px 2px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

select:focus, input:focus, textarea:focus { border-color: var(--border-active); }
select option { background: var(--bg-card); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Profile ── */
.profile-hero {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 90px;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent2-dim));
  pointer-events: none;
}

.profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  color: #fff;
  border: 3px solid var(--bg-card);
  position: relative;
  flex-shrink: 0;
}

.profile-online-dot {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

/* ── Auth ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
  padding: 24px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
}

.form-group { margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 7px; display: block; letter-spacing: 0.03em; }

/* ── Chart placeholders ── */
.chart-placeholder {
  background: repeating-linear-gradient(
    90deg,
    rgba(99,255,178,0.06) 0px, rgba(99,255,178,0.06) 1px,
    transparent 1px, transparent 48px
  ),
  repeating-linear-gradient(
    0deg,
    rgba(99,255,178,0.04) 0px, rgba(99,255,178,0.04) 1px,
    transparent 1px, transparent 40px
  );
  border-radius: var(--radius);
  position: relative;
}









/* CSS */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    animation: slideDown 0.3s ease;
    position: relative;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: #fed7aa;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-dismiss {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
}

.alert-close:hover {
    opacity: 1;
}



/* ── Misc ── */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }
.text-sm { font-size: 12px; }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.font-mono { font-family: 'DM Mono', monospace; }
.w-full { width: 100%; }
.text-right { text-align: right; }

@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .grid-7-3, .grid-6-4, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Theme Toggle ── */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
  transition: all var(--transition);
}

.theme-toggle:hover svg {
  color: var(--accent);
}

/* Smooth theme transition */
* {
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}





/* Processing Data JS overlay */ 

/* Theme variables */
[data-theme="light"] .processing-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .processing-card h3 {
    color: #1e293b;
}

[data-theme="light"] .processing-message {
    color: #475569;
}

[data-theme="light"] .step-label {
    color: #64748b;
}

[data-theme="light"] .step-item.completed .step-label {
    color: #1e293b;
}

[data-theme="light"] .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}



.hr_line{
    width: 100%;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.12),
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.12),
        transparent
    );

    margin: 18px 0;

    border: none;

    position: relative;

    overflow: hidden;
}

.hr_line::before{
    content: '';

    position: absolute;
    top: 0;
    left: -40%;

    width: 40%;
    height: 100%;

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );

    animation: hrShine 4s linear infinite;
}

@keyframes hrShine{
    0%{
        left: -40%;
    }

    100%{
        left: 120%;
    }
}