@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   SHADCN BLACK & WHITE DESIGN SYSTEM
   Professional UI — TebList Pro
   ============================================ */

:root,
[data-theme="dark"] {
    /* --- CORE PALETTE (shadcn dark) --- */
    --background: #09090b;
    --foreground: #fafafa;
    --card: #0a0a0c;
    --card-foreground: #fafafa;
    --popover: #0a0a0c;
    --popover-foreground: #fafafa;
    --primary: #fafafa;
    --primary-foreground: #18181b;
    --secondary: #27272a;
    --secondary-foreground: #fafafa;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --accent: #27272a;
    --accent-foreground: #fafafa;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #27272a;
    --input: #27272a;
    --ring: #d4d4d8;
    --sidebar-bg: #09090b;
    --sidebar-border: #1a1a1e;

    /* --- CATEGORY COLORS --- */
    --cat-teb2: #facc15;
    --cat-teb2-bg: rgba(250, 204, 21, 0.08);
    --cat-teb2-border: rgba(250, 204, 21, 0.2);
    --cat-mahkeme: #f87171;
    --cat-mahkeme-bg: rgba(248, 113, 113, 0.08);
    --cat-mahkeme-border: rgba(248, 113, 113, 0.2);
    --cat-alternatif: #2dd4bf;
    --cat-alternatif-bg: rgba(45, 212, 191, 0.08);
    --cat-alternatif-border: rgba(45, 212, 191, 0.2);
    --cat-kdv: #a78bfa;
    --cat-kdv-bg: rgba(167, 139, 250, 0.08);
    --cat-kdv-border: rgba(167, 139, 250, 0.2);
    --cat-none: #71717a;

    /* --- USD CATEGORY COLORS --- */
    --cat-usd_teb2: #f97316;
    --cat-usd_teb2-bg: rgba(249, 115, 22, 0.08);
    --cat-usd_teb2-border: rgba(249, 115, 22, 0.2);
    --cat-usd_mahkeme: #b91c1c;
    --cat-usd_mahkeme-bg: rgba(185, 28, 28, 0.08);
    --cat-usd_mahkeme-border: rgba(185, 28, 28, 0.2);
    --cat-usd_sgk: #38bdf8;
    --cat-usd_sgk-bg: rgba(56, 189, 248, 0.08);
    --cat-usd_sgk-border: rgba(56, 189, 248, 0.2);

    /* Semantic */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.08);
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    /* Geometry */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --background: #ffffff;
    --foreground: #09090b;
    --card: #ffffff;
    --card-foreground: #09090b;
    --popover: #ffffff;
    --popover-foreground: #09090b;
    --primary: #18181b;
    --primary-foreground: #fafafa;
    --secondary: #f4f4f5;
    --secondary-foreground: #18181b;
    --muted: #f4f4f5;
    --muted-foreground: #71717a;
    --accent: #f4f4f5;
    --accent-foreground: #18181b;
    --destructive: #ef4444;
    --destructive-foreground: #fafafa;
    --border: #e4e4e7;
    --input: #e4e4e7;
    --ring: #a1a1aa;
    --sidebar-bg: #fafafa;
    --sidebar-border: #e4e4e7;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    height: 100vh;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s, color 0.3s;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-container.active {
    opacity: 1;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    border-radius: 0 2px 2px 0;
    transition: width 0.3s ease;
}

.progress-bar-container.indeterminate .progress-bar-fill {
    width: 100%;
    animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== APP LAYOUT ===== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 272px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    gap: 16px;
    flex-shrink: 0;
    z-index: 20;
    overflow-y: auto;
    transition: background-color 0.3s;
}

.logo-area {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 4px 16px;
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.3px;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    margin-left: auto;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--muted-foreground);
}

/* --- Upload Zones --- */
.upload-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-zone {
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.upload-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: transparent;
    transition: background 0.2s;
    pointer-events: none;
}

.upload-zone:hover {
    border-color: var(--muted-foreground);
    background: var(--secondary);
}

.upload-zone:hover::before {
    background: rgba(250, 250, 250, 0.02);
}

.upload-zone.dragover {
    border-color: var(--foreground);
    background: var(--secondary);
    border-style: solid;
}

.upload-zone.has-file {
    border-style: solid;
    border-color: var(--success);
    background: var(--success-bg);
}

.upload-zone.secondary {
    border-color: var(--border);
    padding: 12px;
}

.upload-zone.secondary:hover {
    border-color: var(--muted-foreground);
    background: var(--secondary);
}

.upload-icon {
    font-size: 20px;
    margin-bottom: 6px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.upload-zone:hover .upload-icon {
    opacity: 1;
}

.upload-text {
    font-weight: 500;
    font-size: 13px;
    color: var(--foreground);
}

.upload-hint {
    font-size: 10px;
    color: var(--muted-foreground);
    margin-top: 3px;
    font-family: 'JetBrains Mono', monospace;
}

.upload-filename {
    margin-top: 2px;
    font-size: 11px;
    color: var(--success);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'JetBrains Mono', monospace;
}

/* Compact Upload Zone */
.upload-zone.compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-align: left;
}

.upload-zone.compact.secondary {
    padding: 8px 12px;
}

.upload-icon-sm {
    font-size: 18px;
    flex-shrink: 0;
}

.upload-info {
    flex: 1;
    min-width: 0;
}

.upload-info .upload-text {
    font-size: 12px;
}

.upload-info .upload-filename {
    margin-top: 1px;
    font-size: 10px;
}

/* Sidebar Divider */
.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Upload Arrow Icon */
.upload-arrow {
    font-size: 14px;
    color: var(--muted-foreground);
    opacity: 0.4;
    transition: all 0.2s;
    flex-shrink: 0;
}

.upload-zone:hover .upload-arrow {
    opacity: 1;
    color: var(--foreground);
}

.upload-zone.has-file .upload-arrow {
    display: none;
}

/* Disabled Upload Zone */
.upload-zone.disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: not-allowed;
}

.upload-zone.disabled .upload-arrow {
    display: none;
}

/* ===== SIDEBAR FILTERS ===== */
.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.category-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--muted-foreground);
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 4px;
    padding: 0 8px;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.filter-tab:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.filter-tab .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: box-shadow 0.2s;
}

.filter-tab:hover .dot {
    box-shadow: 0 0 6px currentColor;
}

.filter-tab[data-cat="teb2"].active {
    background: var(--cat-teb2-bg);
    color: var(--cat-teb2);
    border-color: var(--cat-teb2-border);
    font-weight: 500;
}

.filter-tab[data-cat="teb2"].active .dot {
    box-shadow: 0 0 8px var(--cat-teb2);
}

.filter-tab[data-cat="mahkeme"].active {
    background: var(--cat-mahkeme-bg);
    color: var(--cat-mahkeme);
    border-color: var(--cat-mahkeme-border);
    font-weight: 500;
}

.filter-tab[data-cat="mahkeme"].active .dot {
    box-shadow: 0 0 8px var(--cat-mahkeme);
}

.filter-tab[data-cat="alternatif"].active {
    background: var(--cat-alternatif-bg);
    color: var(--cat-alternatif);
    border-color: var(--cat-alternatif-border);
    font-weight: 500;
}

.filter-tab[data-cat="alternatif"].active .dot {
    box-shadow: 0 0 8px var(--cat-alternatif);
}

.filter-tab[data-cat="kdv"].active {
    background: var(--cat-kdv-bg);
    color: var(--cat-kdv);
    border-color: var(--cat-kdv-border);
    font-weight: 500;
}

.filter-tab[data-cat="kdv"].active .dot {
    box-shadow: 0 0 8px var(--cat-kdv);
}

.filter-tab[data-cat="none"].active {
    background: rgba(113, 113, 122, 0.1);
    color: var(--foreground);
    border-color: rgba(113, 113, 122, 0.2);
    font-weight: 500;
}

.filter-tab[data-cat="usd_teb2"].active {
    background: var(--cat-usd_teb2-bg);
    color: var(--cat-usd_teb2);
    border-color: var(--cat-usd_teb2-border);
    font-weight: 500;
}

.filter-tab[data-cat="usd_teb2"].active .dot {
    box-shadow: 0 0 8px var(--cat-usd_teb2);
}

.filter-tab[data-cat="usd_mahkeme"].active {
    background: var(--cat-usd_mahkeme-bg);
    color: var(--cat-usd_mahkeme);
    border-color: var(--cat-usd_mahkeme-border);
    font-weight: 500;
}

.filter-tab[data-cat="usd_mahkeme"].active .dot {
    box-shadow: 0 0 8px var(--cat-usd_mahkeme);
}

.filter-tab[data-cat="usd_sgk"].active {
    background: var(--cat-usd_sgk-bg);
    color: var(--cat-usd_sgk);
    border-color: var(--cat-usd_sgk-border);
    font-weight: 500;
}

.filter-tab[data-cat="usd_sgk"].active .dot {
    box-shadow: 0 0 8px var(--cat-usd_sgk);
}

/* Filter Count Badge */
.filter-count {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted-foreground);
    min-width: 28px;
    text-align: right;
    opacity: 0.7;
}

.filter-total {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--foreground);
    background: var(--secondary);
    border-radius: var(--radius-sm);
}

.filter-total .filter-count {
    color: var(--foreground);
    font-size: 12px;
    font-weight: 700;
    opacity: 1;
}

/* ===== PREMIUM EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 40px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-visual {
    position: relative;
    margin-bottom: 28px;
}

.empty-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.08) 0%, rgba(167, 139, 250, 0.05) 50%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.empty-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: var(--secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.empty-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.empty-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.empty-sub {
    font-size: 14px;
    color: var(--muted-foreground);
    max-width: 360px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.empty-sub strong {
    color: var(--foreground);
}

.empty-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.empty-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--badge-color) 10%, transparent);
    color: var(--badge-color);
    border: 1px solid color-mix(in srgb, var(--badge-color) 25%, transparent);
    letter-spacing: 0.3px;
}

/* ===== SIDEBAR ACTIONS ===== */
.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--muted-foreground);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 12px;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.sidebar-btn:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.sidebar-btn.danger:hover {
    color: var(--destructive);
}

/* ===== STATS BAR ===== */
.stats-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background-color 0.3s;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 2px 0;
}

.stat-label {
    color: var(--muted-foreground);
    font-weight: 400;
}

.stat-val {
    font-weight: 600;
    color: var(--foreground);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.stat-total {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 4px;
}

.stat-total .stat-label {
    color: var(--foreground);
    font-weight: 500;
}

.stat-total .stat-val {
    color: var(--foreground);
    font-size: 14px;
    font-weight: 700;
}

/* ===== MAIN CONTENT AREA ===== */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--background);
    overflow: hidden;
    transition: background-color 0.3s;
}

/* ===== MAIN TOOLBAR (Always Visible) ===== */
.main-toolbar {
    padding: 10px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 10;
    transition: background-color 0.3s;
}

.main-toolbar .search-box {
    position: relative;
    flex: 0 0 280px;
}

.main-toolbar .search-box input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 7px 12px 7px 34px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    height: 36px;
}

.main-toolbar .search-box input::placeholder {
    color: var(--muted-foreground);
}

.main-toolbar .search-box input:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(212, 212, 216, 0.1);
    outline: none;
}

.main-toolbar .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-size: 13px;
    pointer-events: none;
}

/* ===== TABLE TOOLBAR ===== */
.table-toolbar {
    padding: 10px 20px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    z-index: 10;
    transition: background-color 0.3s;
}

.search-box {
    position: relative;
    flex: 0 0 280px;
}

.search-box input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--foreground);
    padding: 7px 12px 7px 34px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: inherit;
    transition: all 0.2s;
    height: 36px;
}

.search-box input::placeholder {
    color: var(--muted-foreground);
}

.search-box input:focus {
    border-color: var(--ring);
    box-shadow: 0 0 0 2px rgba(212, 212, 216, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted-foreground);
    font-size: 13px;
    pointer-events: none;
}

.toolbar-actions {
    display: flex;
    gap: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 14px;
    height: 36px;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    font-size: 13px;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: -0.1px;
}

.btn-primary {
    background: #3f3f46;
    color: var(--foreground);
    border: 1px solid #52525b;
}

.btn-primary:hover {
    background: #52525b;
    border-color: #71717a;
}

.btn-primary:active {
    background: #3f3f46;
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.btn-outline:hover {
    background: var(--secondary);
    border-color: var(--muted-foreground);
}

.btn-excel {
    background: #16a34a;
    color: #ffffff;
    border: none;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3);
}

.btn-excel:hover {
    background: #15803d;
}

.btn-karekod {
    background: #6c5ce7;
    color: #ffffff;
    border: none;
    box-shadow: 0 1px 3px rgba(108, 92, 231, 0.3);
}

.btn-karekod:hover {
    background: #5b4bd4;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

[data-theme="light"] .btn-primary {
    background: #e4e4e7;
    color: #18181b;
    border-color: #d4d4d8;
}

[data-theme="light"] .btn-primary:hover {
    background: #d4d4d8;
    border-color: #a1a1aa;
}

/* ===== DATA TABLE ===== */
.table-wrapper {
    flex: 1;
    overflow: auto;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: var(--muted-foreground);
}

thead th {
    background: var(--card);
    color: var(--muted-foreground);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 5;
    text-align: left;
    white-space: nowrap;
    transition: background 0.15s;
    cursor: pointer;
    user-select: none;
}

thead th:hover {
    background: var(--secondary);
}

.th-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.sort-indicator {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 2px;
}

.sort-indicator.active {
    opacity: 1;
    color: var(--info);
}

tbody td {
    padding: 5px 8px;
    border-bottom: 1px solid var(--border);
    background: var(--background);
    transition: background 0.1s;
    white-space: nowrap;
    height: 32px;
    font-size: 12px;
}

tbody tr {
    transition: background 0.1s;
}

tbody tr:hover td {
    background: var(--secondary);
}

tbody tr.selected td {
    background: rgba(250, 250, 250, 0.06) !important;
    color: var(--foreground);
}

[data-theme="light"] tbody tr.selected td {
    background: rgba(59, 130, 246, 0.08) !important;
}

td[class*="cell-"] {
    font-weight: 500;
}

td.cell-teb2 {
    color: var(--cat-teb2);
}

td.cell-mahkeme {
    color: var(--cat-mahkeme);
}

td.cell-alternatif {
    color: var(--cat-alternatif);
}

td.cell-kdv {
    color: var(--cat-kdv);
}

td.cell-usd_teb2 {
    color: var(--cat-usd_teb2);
}

td.cell-usd_mahkeme {
    color: var(--cat-usd_mahkeme);
}

td.cell-usd_sgk {
    color: var(--cat-usd_sgk);
}

td[contenteditable="true"]:focus {
    background: var(--secondary) !important;
    outline: 2px solid var(--ring);
    outline-offset: -2px;
    border-radius: 2px;
    color: var(--foreground);
}

.row-num {
    color: var(--muted-foreground);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    opacity: 0.5;
    width: 40px;
    text-align: center;
    user-select: none;
}

/* ===== BULK ACTION TOOLBAR ===== */
.bulk-toolbar {
    position: fixed;
    bottom: -70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xl);
    z-index: 100;
    transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bulk-toolbar.visible {
    bottom: 24px;
}

.bulk-info {
    font-size: 13px;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.bulk-count {
    font-weight: 700;
    color: var(--foreground);
    font-family: 'JetBrains Mono', monospace;
}

.bulk-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.bulk-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: all 0.15s;
    white-space: nowrap;
}

.bulk-btn:hover {
    background: var(--secondary);
    border-color: var(--muted-foreground);
}

.bulk-btn.danger {
    color: var(--destructive);
    border-color: rgba(239, 68, 68, 0.3);
}

.bulk-btn.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

.bulk-btn.muted {
    color: var(--muted-foreground);
}

.bulk-btn .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.bulk-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 4px;
}

/* ===== FILTER / CONTEXT MENUS ===== */
.context-menu,
.filter-menu {
    position: fixed;
    background: var(--popover);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    max-width: 300px;
    padding: 4px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: popover-in 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popover-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.filter-header-title {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2px;
}

.filter-list {
    max-height: 200px;
    overflow-y: auto;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--foreground);
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: background 0.1s;
    margin: 1px 2px;
}

.filter-item:hover {
    background: var(--secondary);
}

.filter-actions-bottom {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 8px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
}

.btn-primary-xs,
.btn-text {
    cursor: pointer;
    font-size: 12px;
    border: none;
    background: transparent;
    padding: 4px 10px;
    color: var(--muted-foreground);
    border-radius: var(--radius-xs);
    font-family: inherit;
    transition: all 0.15s;
}

.btn-text:hover {
    color: var(--foreground);
    background: var(--secondary);
}

.btn-primary-xs {
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 500;
}

.btn-primary-xs:hover {
    background: #e4e4e7;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 2px 4px;
    opacity: 0.4;
    font-size: 10px;
    transition: all 0.15s;
    border-radius: var(--radius-xs);
}

.filter-btn:hover {
    color: var(--foreground);
    opacity: 1;
    background: var(--secondary);
}

.filter-btn.filtered {
    color: var(--foreground);
    opacity: 1;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #d4d4d8;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #a1a1aa;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--muted-foreground);
    text-align: center;
    gap: 4px;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.2;
}

.empty-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--foreground);
}

.empty-sub {
    font-size: 13px;
    color: var(--muted-foreground);
    max-width: 300px;
    line-height: 1.5;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
    pointer-events: none;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: var(--foreground);
    min-width: 280px;
    max-width: 400px;
    animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 13px;
    pointer-events: auto;
    line-height: 1.4;
}

.toast.success {
    border-color: rgba(34, 197, 94, 0.3);
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.toast.info {
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes toast-in {
    from {
        transform: translateY(16px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlay-in 0.2s ease;
}

[data-theme="light"] .modal-overlay {
    background: rgba(0, 0, 0, 0.4);
}

@keyframes overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 480px;
    max-height: 80vh;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    animation: modal-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 18px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    transition: all 0.15s;
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--foreground);
}

.modal-footer {
    text-align: right;
    padding-top: 4px;
    flex-shrink: 0;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

.report-item {
    background: var(--secondary);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color 0.15s;
}

.report-item:hover {
    border-color: var(--muted-foreground);
}

.report-val {
    font-size: 20px;
    font-weight: 700;
    display: block;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.5px;
}

.report-label {
    font-size: 10px;
    color: var(--muted-foreground);
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* ===== HISTORY PANEL ===== */
.history-list {
    overflow-y: auto;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    transition: background 0.1s;
    border-left: 3px solid var(--border);
}

.history-item:hover {
    background: var(--secondary);
}

.history-item.type-load {
    border-left-color: var(--info);
}

.history-item.type-delete {
    border-left-color: var(--destructive);
}

.history-item.type-filter {
    border-left-color: var(--warning);
}

.history-item.type-color {
    border-left-color: var(--cat-teb2);
}

.history-item.type-undo {
    border-left-color: var(--cat-alternatif);
}

.history-item.type-edit {
    border-left-color: var(--cat-kdv);
}

.history-time {
    color: var(--muted-foreground);
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    white-space: nowrap;
    min-width: 50px;
    padding-top: 1px;
}

.history-detail {
    flex: 1;
}

.history-action {
    font-weight: 500;
    color: var(--foreground);
    display: block;
}

.history-sub {
    color: var(--muted-foreground);
    font-size: 11px;
}

.history-empty {
    text-align: center;
    padding: 30px;
    color: var(--muted-foreground);
    font-size: 13px;
}

/* ===== SHORTCUTS PANEL ===== */
.shortcut-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.shortcut-keys {
    display: flex;
    gap: 4px;
}

.shortcut-key {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 2px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    color: var(--foreground);
}

/* ===== CHECKBOX ===== */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 2px;
    font-size: 10px;
    color: var(--primary-foreground);
    font-weight: 700;
}

input[type="checkbox"]:hover {
    border-color: var(--muted-foreground);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(250, 250, 250, 0.15);
    color: var(--foreground);
}

[data-theme="light"] ::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #09090b;
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .sidebar {
        animation: sidebar-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes sidebar-in {
        from {
            opacity: 0;
            transform: translateX(-8px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .content-area {
        animation: content-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
    }

    @keyframes content-in {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }
}

/* ===== LOGIN OVERLAY ===== */
.login-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--background, #09090b);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.login-box {
    width: 100%;
    max-width: 360px;
    padding: 32px;
    background: var(--surface, #111113);
    border: 1px solid var(--border, #27272a);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    animation: loginFadeIn 0.4s ease-out;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--foreground, #fafafa);
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    height: 42px;
    background: var(--input, #27272a);
    border: 1px solid var(--border, #27272a);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--foreground, #fafafa);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-field input:focus {
    border-color: #d4d4d8;
    box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.1);
}

.login-field input::placeholder {
    color: #71717a;
}

.login-remember {
    margin-bottom: 18px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #a1a1aa;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #fafafa;
    cursor: pointer;
    flex-shrink: 0;
}

.login-submit-btn {
    width: 100%;
    height: 44px;
    background: var(--foreground, #fafafa);
    color: var(--background, #09090b);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s, transform 0.15s;
}

.login-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.login-submit-btn:active {
    transform: scale(0.98);
}

.login-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.login-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--background, #09090b);
    border-radius: 50%;
    animation: loginSpin 0.6s linear infinite;
}

.login-submit-btn.loading .login-spinner {
    display: inline-block;
}

.login-submit-btn.loading .login-btn-label {
    opacity: 0.7;
}

@keyframes loginSpin {
    to { transform: rotate(360deg); }
}

.login-error-msg {
    display: none;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    animation: loginShake 0.3s ease-out;
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

[data-theme="light"] .login-overlay {
    background: #f4f4f5;
}

[data-theme="light"] .login-box {
    background: #ffffff;
    border-color: #e4e4e7;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .login-field input {
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #09090b;
}

[data-theme="light"] .login-field input:focus {
    border-color: #a1a1aa;
}

[data-theme="light"] .login-submit-btn {
    background: #09090b;
    color: #fafafa;
}

/* ============================================
   WIZARD MODAL STYLES
   ============================================ */

.wizard-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wizardFadeIn 0.4s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wizard-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
    width: 520px;
    max-width: 95vw;
    padding: 0;
    overflow: hidden;
    animation: wizardSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wizardSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.wizard-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.wizard-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.wizard-header-text {
    flex: 1;
}

.wizard-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.wizard-subtitle {
    font-size: 12px;
    color: var(--muted-foreground);
}

/* Step Indicators */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 14px;
}

.wizard-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    background: var(--muted);
    color: var(--muted-foreground);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.wizard-step-dot.active {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.12);
}

.wizard-step-dot.done {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    transition: background 0.3s ease;
    max-width: 48px;
}

.wizard-step-line.done {
    background: var(--success);
}

/* Body */
.wizard-body {
    padding: 28px 28px 8px;
    min-height: 200px;
}

.wizard-step-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--muted-foreground);
    margin-bottom: 10px;
}

.wizard-instruction {
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.5;
    margin-bottom: 6px;
}

.wizard-desc {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Wizard Drop Zone */
.wizard-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: transparent;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.wizard-dropzone:hover {
    border-color: var(--ring);
    background: rgba(255,255,255,0.02);
}

.wizard-dropzone.dragover {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
    transform: scale(1.01);
}

.wizard-dropzone.has-file {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.wizard-dropzone-icon {
    font-size: 32px;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.wizard-dropzone:hover .wizard-dropzone-icon {
    transform: translateY(-2px);
}

.wizard-dropzone-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
}

.wizard-dropzone-sub {
    font-size: 12px;
    color: var(--muted-foreground);
}

.wizard-dropzone-filename {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
    margin-top: 4px;
    word-break: break-all;
    max-width: 380px;
}

/* Monday Warning */
.wizard-monday-warning {
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.wizard-monday-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.wizard-monday-title {
    font-size: 15px;
    font-weight: 700;
    color: #f97316;
    margin-bottom: 6px;
}

.wizard-monday-text {
    font-size: 13px;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Completion screen */
.wizard-complete {
    text-align: center;
    padding: 8px 0 16px;
}

.wizard-complete-icon {
    font-size: 56px;
    margin-bottom: 14px;
    display: block;
    animation: wizardBounce 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes wizardBounce {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.2); }
    60% { transform: scale(0.95); }
}

.wizard-complete-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 6px;
}

.wizard-complete-sub {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Footer */
.wizard-footer {
    padding: 16px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.wizard-btn-skip {
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
    font-family: inherit;
}

.wizard-btn-skip:hover {
    color: var(--foreground);
}

.wizard-btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.wizard-btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.wizard-btn-primary.success {
    background: var(--success);
    color: #fff;
}

.wizard-btn-primary.pulse {
    animation: wizardPulse 1.5s infinite;
}

@keyframes wizardPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

/* Progress text in wizard */
.wizard-progress-text {
    font-size: 12px;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wizard-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Download highlight animation on main button */
#btnDownloadSplit.wizard-highlight {
    animation: downloadGlow 2s ease-in-out 3;
}

@keyframes downloadGlow {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.4), 0 0 20px rgba(34, 197, 94, 0.2); }
}

[data-theme="light"] .wizard-card {
    box-shadow: 0 32px 64px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
}

[data-theme="light"] .wizard-dropzone:hover {
    background: rgba(0,0,0,0.02);
}

/* Devam Et — belirgin koyu buton */
.wizard-btn-dark {
    background: #18181b !important;
    color: #fafafa !important;
    border: 1px solid #3f3f46 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.wizard-btn-dark:hover:not(:disabled) {
    background: #27272a !important;
    border-color: #52525b !important;
    transform: translateY(-1px);
}
.wizard-btn-dark.success {
    background: #16a34a !important;
    color: #fff !important;
    border-color: #16a34a !important;
}

[data-theme="light"] .wizard-btn-dark {
    background: #09090b !important;
    color: #fafafa !important;
    border-color: #27272a !important;
}

/* SGK Path hint */
.wizard-sgk-path {
    font-size: 13px;
    font-weight: 700;
    color: var(--foreground);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 18px;
    letter-spacing: 0.1px;
}

/* Listeyi İndir — siyah yazı */
.wizard-btn-download {
    background: #22c55e !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(34, 197, 94, 0.35);
}
.wizard-btn-download:hover:not(:disabled) {
    background: #16a34a !important;
    color: #000 !important;
    transform: translateY(-1px);
}

/* Step 1 — Mavi çerçeveli yol kutusu */
.wizard-main-path {
    font-size: 13px;
    font-weight: 700;
    color: var(--foreground);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 18px;
    letter-spacing: 0.1px;
}

/* Sadece tıkla — sürükleme pasif, dashed border kaldır */
.wizard-click-only {
    border-style: solid !important;
    cursor: pointer;
}
.wizard-click-only:hover {
    border-color: var(--ring) !important;
}

/* Devam Et → ok işareti rengi */
.wizard-btn-arrow {
    color: #22c55e;
    font-size: 15px;
    font-weight: 800;
}
