/* ========================================================================
   tool-page-bundle.css — critical CSS bundle (blocking, on critical path)
   Generated by scripts/build-css-bundle.sh on 2026-06-01T17:25:26Z
   DO NOT EDIT BY HAND — your changes will be overwritten.
   Edit the source files in /Users/anish/git/crypto-tool/src/main/webapp/modern/css/, then re-run the script.
   ====================================================================== */

/* === [1/5] design-system.css === */
/**
 * 8gwifi.org Modern Design System
 * Mobile-first, modern CSS with custom properties
 * Version: 1.0.0
 */

/* ============================================
   CSS RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */

:root,
:root[data-theme="light"] {
    /* ========== COLORS ========== */
    
    /* Primary Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    
    /* Neutral Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-hover: #f8fafc;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --error: #ef4444;
    --error-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* ========== TYPOGRAPHY ========== */
    
    /* Font Families */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1rem;       /* 16px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.5rem;      /* 24px */
    --text-3xl: 1.875rem;    /* 30px */
    --text-4xl: 2.25rem;     /* 36px */
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* ========== SPACING ========== */
    
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    
    /* ========== SHADOWS ========== */
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* ========== BORDER RADIUS ========== */
    
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* ========== Z-INDEX SCALE ========== */
    
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* ========== TRANSITIONS ========== */
    
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
    
    /* ========== LAYOUT ========== */
    
    --header-height-mobile: 64px;
    --header-height-desktop: 72px;
    --sidebar-width: 280px;
    --sidebar-width-collapsed: 0px;
    --container-max-width: 1280px;
    --content-max-width: 1200px;
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --bg-hover: #1e293b;
        
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        
        --border: #334155;
        --border-light: #475569;
        --border-dark: #64748b;
    }
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-hover: #1e293b;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border: #334155;
    --border-light: #475569;
    --border-dark: #64748b;
}

/* Apply dark mode background to body */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile-first approach */
/* Default: Mobile (< 768px) */

/* Tablet */
@media (min-width: 768px) {
    :root {
        --header-height-mobile: 72px;
    }
}

/* Desktop */
@media (min-width: 992px) {
    /* Desktop-specific overrides */
}

/* Large Desktop */
@media (min-width: 1400px) {
    /* Large desktop optimizations */
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Container */
.container-modern {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 768px) {
    .container-modern {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

@media (min-width: 1280px) {
    .container-modern {
        max-width: var(--container-max-width);
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #000000;
        --text-secondary: #000000;
    }
}


/* === [2/5] navigation.css === */
/**
 * Modern Navigation System
 * Mobile-first, no Bootstrap dependency
 */

/* ============================================
   HEADER NAVIGATION
   ============================================ */

.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed, 1030);
    background: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
    height: var(--header-height-desktop, 72px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-4, 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-lg, 1.125rem);
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md, 0.5rem);
}

.nav-logo span {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary, #6366f1); /* Fallback for browsers that don't support gradient text */
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Dark theme logo text */
[data-theme="dark"] .nav-logo span {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-light, #818cf8); /* Fallback */
}

/* Navigation Items */
.nav-items {
    display: flex;
    align-items: center;
    gap: var(--space-6, 1.5rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-secondary, #475569);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-base, 1rem);
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    border-radius: var(--radius-md, 0.5rem);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
}

.nav-link:hover {
    color: var(--primary, #6366f1);
    background: var(--bg-secondary, #f8fafc);
}

.nav-link.active {
    color: var(--primary, #6366f1);
    background: var(--primary-50, #eef2ff);
}

/* Categories Dropdown */
.nav-item-dropdown {
    position: static;
}

.nav-link-dropdown {
    cursor: pointer;
    user-select: none;
    background: none;
    border: none;
    font-family: inherit;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 0.25rem;
    transition: transform 0.2s;
}

/* Mega-Menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--shadow-xl, 0 20px 25px rgba(0,0,0,0.1));
    margin-top: var(--space-2, 0.5rem);
    padding: var(--space-6, 1.5rem);
    max-height: 80vh;
    overflow-y: auto;
    z-index: var(--z-dropdown, 1020);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6, 1.5rem);
}

.mega-menu-column {
    min-width: 0;
}

.mega-menu-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    margin-bottom: var(--space-4, 1rem);
    padding-bottom: var(--space-3, 0.75rem);
    border-bottom: 2px solid var(--border, #e2e8f0);
}

.mega-menu-icon {
    font-size: var(--text-2xl, 1.5rem);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--radius-md, 0.5rem);
}

.mega-menu-category-name {
    font-weight: 600;
    font-size: var(--text-base, 1rem);
    color: var(--text-primary, #0f172a);
}

.mega-menu-tool-count {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-muted, #94a3b8);
}

.mega-menu-tool-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.mega-menu-tool-list::-webkit-scrollbar {
    width: 6px;
}

.mega-menu-tool-list::-webkit-scrollbar-track {
    background: var(--bg-secondary, #f8fafc);
    border-radius: var(--radius-full, 9999px);
}

.mega-menu-tool-list::-webkit-scrollbar-thumb {
    background: var(--border-dark, #cbd5e1);
    border-radius: var(--radius-full, 9999px);
}

.mega-menu-tool-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted, #94a3b8);
}

.mega-menu-tool-list li {
    margin-bottom: var(--space-2, 0.5rem);
}

.mega-menu-tool-link {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    color: var(--text-secondary, #475569);
    text-decoration: none;
    border-radius: var(--radius-md, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    transition: all 0.2s;
}

.mega-menu-tool-link:hover {
    background: var(--bg-secondary, #f8fafc);
    color: var(--primary, #6366f1);
    padding-left: var(--space-4, 1rem);
}

.tool-icon-small {
    font-size: 1em;
    line-height: 1;
    flex-shrink: 0;
    width: 1.25em;
    text-align: center;
}

.mega-menu-view-all {
    margin-top: var(--space-3, 0.75rem);
    padding-top: var(--space-3, 0.75rem);
    border-top: 1px solid var(--border, #e2e8f0);
}

.mega-menu-view-all-link {
    display: block;
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    color: var(--primary, #6366f1);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm, 0.875rem);
    transition: all 0.2s;
}

.mega-menu-view-all-link:hover {
    color: var(--primary-dark, #4f46e5);
    padding-left: var(--space-4, 1rem);
}

/* Search Bar */
.nav-search {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 var(--space-6, 1.5rem);
}

.search-input {
    width: 100%;
    padding: var(--space-2, 0.5rem) var(--space-10, 2.5rem) var(--space-2, 0.5rem) var(--space-4, 1rem);
    border: 2px solid var(--border, #e2e8f0);
    border-radius: var(--radius-full, 9999px);
    font-size: var(--text-sm, 0.875rem);
    background: var(--bg-secondary, #f8fafc);
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    background: var(--bg-primary, #ffffff);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    position: absolute;
    right: var(--space-4, 1rem);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    pointer-events: none;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
}

.btn-nav {
    padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
    border-radius: var(--radius-md, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    font-family: var(--font-sans);
}

.btn-nav-primary {
    background: var(--primary, #6366f1);
    color: white;
}

.btn-nav-primary:hover {
    background: var(--primary-dark, #4f46e5);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.1));
}

.btn-nav-secondary {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-secondary, #475569);
    border: 1px solid var(--border, #e2e8f0);
}

.btn-nav-secondary:hover {
    background: var(--bg-tertiary, #f1f5f9);
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2, 0.5rem);
    cursor: pointer;
    color: var(--text-primary);
    font-size: var(--text-xl, 1.25rem);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 0.5rem);
    transition: background 0.2s;
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary, #f8fafc);
}

/* Mobile Search Toggle */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    padding: var(--space-2, 0.5rem);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: var(--text-lg, 1.125rem);
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */

@media (max-width: 991px) {
    .modern-nav {
        height: var(--header-height-mobile, 64px);
    }

    .nav-container {
        padding: 0 var(--space-3, 0.75rem);
    }

    .nav-search {
        display: none;
    }

    .nav-items {
        display: none;
    }

    .nav-actions {
        gap: var(--space-2, 0.5rem);
    }

    .btn-nav {
        padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
        font-size: var(--text-xs, 0.75rem);
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: flex;
    }

    /* Hide some nav actions on mobile */
    .btn-nav .nav-text {
        display: none;
    }
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: var(--header-height-mobile, 64px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary, #ffffff);
    z-index: var(--z-modal, 1050);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: var(--shadow-xl, 0 20px 25px rgba(0,0,0,0.1));
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop, 1040);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.drawer-header {
    padding: var(--space-4, 1rem);
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: var(--text-lg, 1.125rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.drawer-close {
    background: none;
    border: none;
    font-size: var(--text-2xl, 1.5rem);
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-1, 0.25rem);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md, 0.5rem);
    transition: all 0.2s;
}

.drawer-close:hover {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-primary);
}

.drawer-search {
    padding: var(--space-4, 1rem);
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.drawer-content {
    padding: var(--space-4, 1rem);
}

.drawer-section {
    margin-bottom: var(--space-6, 1.5rem);
}

.drawer-section-title {
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
    margin-bottom: var(--space-3, 0.75rem);
    padding: 0 var(--space-2, 0.5rem);
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    padding: var(--space-3, 0.75rem) var(--space-2, 0.5rem);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-md, 0.5rem);
    transition: all 0.2s;
    font-size: var(--text-base, 1rem);
}

.drawer-link:hover {
    background: var(--bg-secondary, #f8fafc);
    color: var(--primary, #6366f1);
    padding-left: var(--space-4, 1rem);
}

.drawer-link-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg, 1.125rem);
    flex-shrink: 0;
}

.drawer-empty {
    padding: var(--space-4, 1rem);
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: var(--text-sm, 0.875rem);
    margin: 0;
}

.drawer-loading {
    padding: var(--space-4, 1rem);
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: var(--text-sm, 0.875rem);
    margin: 0;
}

/* Drawer Category Items */
.drawer-category-item {
    margin-bottom: var(--space-2, 0.5rem);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 0.5rem);
    overflow: hidden;
}

.drawer-category-toggle {
    width: 100%;
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    background: var(--bg-secondary, #f8fafc);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    font-family: inherit;
    font-size: var(--text-base, 1rem);
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    transition: background 0.2s;
    text-align: left;
}

.drawer-category-toggle:hover {
    background: var(--bg-tertiary, #f1f5f9);
}

.drawer-category-icon {
    font-size: var(--text-xl, 1.25rem);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.drawer-category-name {
    flex: 1;
    font-weight: 600;
}

.drawer-category-count {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-muted, #94a3b8);
    background: var(--bg-primary, #ffffff);
    padding: var(--space-1, 0.25rem) var(--space-2, 0.5rem);
    border-radius: var(--radius-full, 9999px);
}

.drawer-category-arrow {
    font-size: var(--text-sm, 0.875rem);
    color: var(--text-muted, #94a3b8);
    transition: transform 0.2s;
}

.drawer-category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-primary, #ffffff);
}

.drawer-category-content.open {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
}

.drawer-category-content.open::-webkit-scrollbar {
    width: 6px;
}

.drawer-category-content.open::-webkit-scrollbar-track {
    background: var(--bg-secondary, #f8fafc);
}

.drawer-category-content.open::-webkit-scrollbar-thumb {
    background: var(--border-dark, #cbd5e1);
    border-radius: var(--radius-full, 9999px);
}

.drawer-category-content.open::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted, #94a3b8);
}

.drawer-category-tools {
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    display: flex;
    flex-direction: column;
    gap: var(--space-2, 0.5rem);
}

.drawer-tool-link {
    display: block;
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    color: var(--text-secondary, #475569);
    text-decoration: none;
    border-radius: var(--radius-md, 0.5rem);
    font-size: var(--text-sm, 0.875rem);
    transition: all 0.2s;
    margin-left: var(--space-8, 2rem);
}

.drawer-tool-link:hover {
    background: var(--bg-secondary, #f8fafc);
    color: var(--primary, #6366f1);
    padding-left: var(--space-4, 1rem);
}

.drawer-view-all {
    display: block;
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
    color: var(--primary, #6366f1);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm, 0.875rem);
    margin-left: var(--space-8, 2rem);
    margin-top: var(--space-2, 0.5rem);
    transition: all 0.2s;
}

.drawer-view-all:hover {
    color: var(--primary-dark, #4f46e5);
    padding-left: var(--space-4, 1rem);
}

/* Mobile Search Modal */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary, #ffffff);
    z-index: var(--z-modal, 1050);
    display: none;
    flex-direction: column;
}

.mobile-search-modal.open {
    display: flex;
}

.mobile-search-header {
    padding: var(--space-4, 1rem);
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
}

.mobile-search-input {
    flex: 1;
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    border: 2px solid var(--border, #e2e8f0);
    border-radius: var(--radius-md, 0.5rem);
    font-size: var(--text-base, 1rem);
    font-family: var(--font-sans);
}

.mobile-search-input:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mobile-search-close {
    background: none;
    border: none;
    font-size: var(--text-xl, 1.25rem);
    color: var(--text-secondary);
    cursor: pointer;
    padding: var(--space-2, 0.5rem);
}

/* Dark Mode Styles */
[data-theme="dark"] .mega-menu {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border, #334155);
}

[data-theme="dark"] .mega-menu-category-header {
    border-bottom-color: var(--border, #334155);
}

[data-theme="dark"] .mega-menu-icon {
    background: var(--bg-tertiary, #334155);
}

[data-theme="dark"] .mega-menu-tool-link:hover,
[data-theme="dark"] .drawer-tool-link:hover {
    background: var(--bg-tertiary, #334155);
}

[data-theme="dark"] .drawer-category-toggle {
    background: var(--bg-secondary, #1e293b);
}

[data-theme="dark"] .drawer-category-toggle:hover {
    background: var(--bg-tertiary, #334155);
}

[data-theme="dark"] .drawer-category-content {
    background: var(--bg-secondary, #1e293b);
}

[data-theme="dark"] .drawer-category-count {
    background: var(--bg-tertiary, #334155);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .mega-menu {
        left: var(--space-4, 1rem);
        right: var(--space-4, 1rem);
        max-width: none;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .nav-logo span {
        display: inline-block; /* Show on mobile */
        font-size: var(--text-sm, 0.875rem); /* Slightly smaller on mobile */
    }

    .nav-logo {
        font-size: var(--text-base, 1rem);
        gap: var(--space-2, 0.5rem); /* Tighter gap on mobile */
    }
    
    .nav-logo img {
        width: 28px; /* Slightly smaller logo on mobile */
        height: 28px;
    }
    
    .mega-menu {
        display: none; /* Hide mega-menu on mobile, use drawer instead */
    }
}


/* === [3/5] tool-page.css === */
/**
 * Modern Tool Page Styles
 * Consistent styling for all tool pages
 */

/* Breadcrumbs */
.breadcrumbs {
    background: var(--bg-secondary, #f8fafc);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
    margin-top: 72px;
}

.breadcrumbs-container {
    max-width: 1400px;
    margin-left: 1.5rem; /* Left-aligned with small left margin */
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

/* Adjust breadcrumbs for larger screens */
@media (min-width: 1300px) {
    .breadcrumbs-container {
        max-width: min(1400px, calc(100vw - 380px - 3rem));
    }
}

@media (min-width: 1440px) {
    .breadcrumbs-container {
        max-width: min(1400px, calc(100vw - 420px - 3rem));
    }
}

.breadcrumbs a {
    color: var(--primary, #6366f1);
    text-decoration: none;
    transition: opacity 0.2s;
}

.breadcrumbs a:hover {
    opacity: 0.8;
}

.breadcrumb-separator {
    color: var(--text-muted, #94a3b8);
}

.breadcrumb-current {
    color: var(--text-secondary, #475569);
    font-weight: 500;
}

/* Tool Header */
.tool-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.tool-header-container,
.tool-container {
    max-width: 1200px;
    margin-left: 1.5rem; /* Left-aligned with small left margin */
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Optimize for larger screens without ads */
@media (min-width: 1300px) {
    .tool-header-container,
    .tool-container {
        max-width: min(1200px, calc(100vw - 380px - 3rem)); /* Reserve space for right ads */
        margin-left: 1.5rem;
    }
}

@media (min-width: 1440px) {
    .tool-header-container,
    .tool-container {
        max-width: min(1200px, calc(100vw - 420px - 3rem)); /* Reserve space for larger right ads */
        margin-left: 1.5rem;
    }
}

@media (min-width: 1600px) {
    .tool-header-container,
    .tool-container {
        max-width: 1400px; /* Use more space on very large screens */
        margin-left: 1.5rem;
    }
}

.tool-header-content {
    text-align: center;
}

.tool-page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.02em;
}

.tool-page-description {
    font-size: 1.125rem;
    color: var(--text-secondary, #475569);
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tool-category-badge,
.tool-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tool-category-badge {
    background: var(--primary, #6366f1);
    color: white;
}

.tool-badge {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-secondary, #475569);
    border: 1px solid var(--border, #e2e8f0);
}

/* Tool Main */
.tool-main {
    padding: 3rem 1.5rem;
    min-height: 60vh;
}

/* Dedicated Layout Wrapper for Content + Ads (Desktop only) */
@media (min-width: 1300px) {
    .tool-main {
        display: grid;
        grid-template-columns: 1fr 356px; /* Content + Ad column (336px + 20px gap) */
        gap: 1.5rem;
        padding: 3rem 1.5rem;
        max-width: 100vw;
        margin: 0;
    }
    
    /* Content area in dedicated left column */
    .tool-main > .tool-container {
        grid-column: 1;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Ad column - dedicated right space (grid column 2) */
    .tool-main > .ad-right-column {
        grid-column: 2;
    }
}

@media (min-width: 1440px) {
    .tool-main {
        grid-template-columns: 1fr 372px; /* 336px + 36px gap */
    }
}

.tool-container {
    max-width: 1200px;
    margin-left: 1.5rem; /* Left-aligned with small left margin */
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Optimize for larger screens */
@media (min-width: 1300px) {
    .tool-container {
        max-width: min(1200px, calc(100vw - 380px - 3rem)); /* Reserve space for right ads */
        margin-left: 1.5rem;
    }
}

@media (min-width: 1440px) {
    .tool-container {
        max-width: min(1200px, calc(100vw - 420px - 3rem)); /* Reserve space for larger right ads */
        margin-left: 1.5rem;
    }
}

@media (min-width: 1600px) {
    .tool-container {
        max-width: 1400px; /* Use more space on very large screens */
        margin-left: 1.5rem;
    }
}

/* Tool Form Card */
.tool-form-card {
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.tool-form-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #0f172a);
}

/* Tool Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #0f172a);
    font-size: 0.9375rem;
}

.input-field,
.textarea-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border, #e2e8f0);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    transition: all 0.2s;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
}

.textarea-field {
    min-height: 150px;
    resize: vertical;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.input-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Tool Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary, #6366f1);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--bg-secondary, #f8fafc);
    color: var(--text-secondary, #475569);
    border: 1px solid var(--border, #e2e8f0);
}

.btn-secondary:hover {
    background: var(--bg-tertiary, #f1f5f9);
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
}

/* Results Card */
.results-card {
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.results-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary, #0f172a);
}

.result-output {
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.5rem;
    padding: 1rem;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 0.9375rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    color: var(--text-primary, #0f172a);
}

/* Dark Mode */
[data-theme="dark"] .breadcrumbs {
    background: var(--bg-secondary, #1e293b);
    border-bottom-color: var(--border, #334155);
}

[data-theme="dark"] .tool-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] .tool-form-card,
[data-theme="dark"] .results-card {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border, #334155);
}

[data-theme="dark"] .input-field,
[data-theme="dark"] .textarea-field,
[data-theme="dark"] .result-output {
    background: var(--bg-tertiary, #334155);
    border-color: var(--border, #334155);
    color: var(--text-primary, #f1f5f9);
}

/* Responsive */
@media (max-width: 767px) {
    .breadcrumbs {
        margin-top: 64px;
        padding: 0.75rem 1rem;
    }

    .tool-header {
        padding: 2rem 1rem;
    }

    .tool-main {
        padding: 2rem 1rem;
    }

    .tool-form-card {
        padding: 1.5rem;
    }
}

/* ==================== FAQ Accordion ==================== */
.faq-item {
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    text-align: left;
    font-family: inherit;
    gap: 0.75rem;
    line-height: 1.4;
}
.faq-question:hover {
    color: var(--accent, #4f46e5);
}
.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary, #64748b);
    line-height: 1.7;
    font-size: 0.9rem;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 0 1rem 0;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
[data-theme="dark"] .faq-question {
    color: var(--text-primary, #f1f5f9);
}
[data-theme="dark"] .faq-answer {
    color: var(--text-secondary, #94a3b8);
}


/* === [4/5] three-column-tool.css === */
/**
 * Three-Column Tool Page Layout
 * Generic styles for tool pages with Input | Output | Ads layout
 *
 * Usage: Include this CSS and use .tool-* classes
 * For tool-specific theming, define CSS variables:
 *   --tool-primary: #326ce5;
 *   --tool-primary-dark: #1d4ed8;
 *   --tool-gradient: linear-gradient(135deg, #326ce5 0%, #1d4ed8 100%);
 *   --tool-light: #eff6ff;
 */

/* ========================================
   CSS VARIABLES (Defaults)
   ======================================== */
:root {
    --tool-primary: var(--primary, #6366f1);
    --tool-primary-dark: var(--primary-dark, #4f46e5);
    --tool-gradient: linear-gradient(135deg, var(--tool-primary) 0%, var(--tool-primary-dark) 100%);
    --tool-light: #f0f4ff;
}

/* ========================================
   THREE COLUMN LAYOUT
   ======================================== */
.tool-page-container {
    display: grid;
    grid-template-columns: minmax(320px, 400px) 1fr 300px;
    gap: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
    min-height: calc(100vh - 180px);
}

@media (max-width: 1024px) {
    .tool-page-container {
        grid-template-columns: minmax(300px, 380px) 1fr;
    }
    .tool-ads-column { display: none; }
}

@media (max-width: 900px) {
    .tool-page-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }

    .tool-input-column {
        position: relative;
        top: auto;
        max-height: none;
        overflow-y: visible;
        z-index: 1;
        order: 1;
    }

    .tool-output-column {
        display: flex !important;
        min-height: 350px;
        position: relative;
        z-index: 2;
        order: 2;
    }

    .tool-output-wrapper {
        min-height: 300px;
        width: 100%;
    }

    .tool-ads-column {
        order: 3;
    }

    .tool-empty-state {
        padding: 2rem 1rem;
    }

    .tool-empty-state svg {
        width: 60px;
        height: 60px;
    }

    .tool-empty-state p {
        font-size: 0.8125rem;
    }
}

/* ========================================
   INPUT COLUMN (Sticky)
   ======================================== */
.tool-input-column {
    position: sticky;
    top: 90px;
    height: fit-content;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.tool-input-column::-webkit-scrollbar {
    width: 5px;
}

.tool-input-column::-webkit-scrollbar-thumb {
    background: var(--tool-primary);
    border-radius: 3px;
}

/* ========================================
   OUTPUT COLUMN
   ======================================== */
.tool-output-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ========================================
   ADS COLUMN
   ======================================== */
.tool-ads-column {
    height: fit-content;
}

/* ========================================
   CARD STYLES
   ======================================== */
.tool-card {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tool-card-header {
    background: var(--tool-gradient);
    color: white;
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-card-body {
    padding: 1rem;
}

/* ========================================
   TABS
   ======================================== */
.tool-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--bg-secondary, #f8fafc);
    border-bottom: 1px solid var(--border, #e2e8f0);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tool-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary, #475569);
    cursor: pointer;
    border-radius: 0.375rem;
    white-space: nowrap;
    transition: all 0.15s;
}

.tool-tab:hover {
    background: var(--bg-primary, #ffffff);
    color: var(--tool-primary);
}

.tool-tab.active {
    background: var(--tool-primary);
    color: white;
}

/* ========================================
   FORM STYLES
   ======================================== */
.tool-form-group {
    margin-bottom: 0.875rem;
}

.tool-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--text-primary, #0f172a);
    font-size: 0.8125rem;
}

.tool-form-label .required {
    color: #ef4444;
}

.tool-input,
.tool-select,
.tool-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
}

.tool-input:focus,
.tool-select:focus,
.tool-textarea:focus {
    outline: none;
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.tool-form-hint {
    font-size: 0.6875rem;
    color: var(--text-secondary, #475569);
    margin-top: 0.25rem;
}

.tool-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .tool-form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */
.tool-section {
    background: var(--tool-light);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.tool-section-header {
    padding: 0.625rem 0.75rem;
    font-weight: 600;
    color: var(--tool-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    user-select: none;
}

.tool-section-header:hover {
    background: rgba(99, 102, 241, 0.1);
}

.tool-section-header .chevron {
    transition: transform 0.2s;
    font-size: 0.75rem;
}

.tool-section-header.collapsed .chevron {
    transform: rotate(-90deg);
}

.tool-section-content {
    padding: 0.75rem;
    background: var(--bg-primary, #ffffff);
    border-top: 1px solid var(--border, #e2e8f0);
}

.tool-section-content.hidden {
    display: none;
}

/* ========================================
   BUTTONS
   ======================================== */
.tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.375rem;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
    cursor: pointer;
    transition: all 0.15s;
}

.tool-btn:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
}

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

.tool-btn-primary {
    background: var(--tool-gradient);
    color: white;
    border: none;
}

.tool-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.tool-btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

/* Main action button (full width) */
.tool-action-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    background: var(--tool-gradient);
    color: white;
    margin-top: 1rem;
    transition: opacity 0.15s, transform 0.15s;
}

.tool-action-btn:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.tool-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   ACTIONS BAR
   ======================================== */
.tool-actions-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary, #f8fafc);
    border-bottom: 1px solid var(--border, #e2e8f0);
    flex-wrap: wrap;
}

.tool-actions-spacer {
    flex: 1;
}

/* ========================================
   FORMAT TOGGLE
   ======================================== */
.tool-format-toggle {
    display: inline-flex;
    background: var(--border, #e2e8f0);
    border-radius: 0.375rem;
    padding: 0.125rem;
}

.tool-format-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary, #475569);
    cursor: pointer;
    border-radius: 0.25rem;
    transition: all 0.15s;
}

.tool-format-btn.active {
    background: var(--bg-primary, #ffffff);
    color: var(--tool-primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   OUTPUT PREVIEW
   ======================================== */
.tool-output-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.tool-output-pre {
    flex: 1;
    margin: 0;
    padding: 1rem;
    background: #1e293b;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    overflow: auto;
    white-space: pre;
    border-radius: 0 0 0.75rem 0.75rem;
}

/* ========================================
   EMPTY STATE
   ======================================== */
.tool-empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-secondary, #475569);
    text-align: center;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 0 0 0.75rem 0.75rem;
}

.tool-empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.tool-empty-state h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    margin-bottom: 0.5rem;
}

.tool-empty-state p {
    font-size: 0.875rem;
    max-width: 280px;
}

/* ========================================
   PRESETS BAR
   ======================================== */
.tool-presets {
    display: flex;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
    overflow-x: auto;
}

.tool-preset-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 9999px;
    background: var(--bg-primary, #ffffff);
    color: var(--text-secondary, #475569);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.tool-preset-btn:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-light);
}

/* ========================================
   STATUS INDICATOR
   ======================================== */
.tool-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background: #dcfce7;
    color: #166534;
    border-bottom: 1px solid #bbf7d0;
}

.tool-status.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.tool-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* ========================================
   LIVE INDICATOR
   ======================================== */
.tool-live-indicator {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    color: #059669;
    font-weight: 500;
}

.tool-live-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: toolPulse 2s infinite;
}

@keyframes toolPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   PAGE HEADER
   ======================================== */
.tool-page-header {
    background: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 1.25rem 1.5rem;
    margin-top: 72px;
}

.tool-page-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.tool-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin: 0;
}

.tool-page-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 9999px;
    background: var(--tool-light);
    color: var(--tool-primary);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.tool-breadcrumbs {
    font-size: 0.8125rem;
    color: var(--text-secondary, #475569);
    margin-top: 0.5rem;
}

.tool-breadcrumbs a {
    color: var(--text-secondary, #475569);
    text-decoration: none;
}

.tool-breadcrumbs a:hover {
    color: var(--tool-primary);
}

/* ========================================
   DESCRIPTION SECTION
   ======================================== */
.tool-description-section {
    background: var(--tool-light);
    border-bottom: 1px solid var(--border, #e2e8f0);
    padding: 1.25rem 1.5rem;
}

.tool-description-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tool-description-content {
    flex: 1;
}

.tool-description-content p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
}

.tool-description-ad {
    flex-shrink: 0;
    /* Fixed dimensions to prevent CLS */
    width: 728px;
    min-height: 90px;
}

.tool-description-ad .ad-container {
    margin: 0;
    min-height: 90px;
    width: 100%;
    /* Reserve space for ad before it loads */
    background: linear-gradient(135deg, var(--bg-secondary, #f1f5f9) 0%, var(--border, #e2e8f0) 100%);
}

.tool-description-ad .ad-container.ad-loaded {
    background: var(--bg-primary, #ffffff);
}

@media (max-width: 1023px) {
    .tool-description-ad {
        display: none;
    }
}

@media (max-width: 767px) {
    .tool-description-section {
        padding: 1rem;
    }

    .tool-description-content p {
        font-size: 0.875rem;
    }
}

/* ========================================
   MOBILE AD CONTAINER
   ======================================== */
.tool-mobile-ad-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem;
}

.tool-mobile-ad-container .ad-container {
    margin: 0 auto;
    max-width: 336px;
}

@media (min-width: 1025px) {
    .tool-mobile-ad-container {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .tool-mobile-ad-container .ad-container {
        max-width: 728px;
    }
}

@media (max-width: 767px) {
    .tool-mobile-ad-container {
        padding: 1rem;
    }

    .tool-mobile-ad-container .ad-container {
        max-width: 100%;
    }
}

/* ========================================
   ALERT BOX
   ======================================== */
.tool-alert {
    padding: 0.625rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tool-alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.tool-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.tool-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.tool-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========================================
   KEY-VALUE PAIR EDITOR
   ======================================== */
.kv-container {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: var(--bg-primary, #ffffff);
}

.kv-pair {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
    align-items: center;
}

.kv-pair:last-child {
    margin-bottom: 0;
}

.kv-pair input,
.kv-key,
.kv-value,
.kv-extra {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
}

.kv-pair input:focus,
.kv-key:focus,
.kv-value:focus,
.kv-extra:focus {
    outline: none;
    border-color: var(--tool-primary);
}

.btn-remove-kv {
    padding: 0.25rem 0.375rem;
    color: #ef4444;
    background: transparent;
    border: 1px solid #fecaca;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.625rem;
    line-height: 1;
    flex-shrink: 0;
}

.btn-remove-kv:hover {
    background: #fef2f2;
}

.btn-add-kv {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: var(--tool-primary);
    background: var(--tool-light);
    border: 1px dashed var(--tool-primary);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-add-kv:hover {
    background: var(--tool-primary);
    color: white;
    border-style: solid;
}

/* Volume Mount Row - for complex multi-field rows */
.volume-mount-row,
.toleration-row {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
    align-items: center;
    flex-wrap: wrap;
}

.volume-mount-row:last-child,
.toleration-row:last-child {
    margin-bottom: 0;
}

/* Inline checkbox label (checkbox inside label) */
.tool-form-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    accent-color: var(--tool-primary);
    vertical-align: middle;
}

/* ========================================
   CHECKBOX
   ======================================== */
.tool-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    cursor: pointer;
}

.tool-checkbox input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--tool-primary);
}

/* ========================================
   TOAST
   ======================================== */
.tool-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 0.75rem 1.25rem;
    background: #1e293b;
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    animation: toolToastIn 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

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

/* ========================================
   KEY-VALUE PAIR EDITOR
   ======================================== */
.tool-kv-container {
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: var(--bg-primary, #ffffff);
}

.tool-kv-pair {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
    align-items: center;
}

.tool-kv-pair:last-child {
    margin-bottom: 0;
}

.tool-kv-pair input {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #0f172a);
}

.tool-kv-pair input:focus {
    outline: none;
    border-color: var(--tool-primary);
}

.tool-btn-remove-kv {
    padding: 0.25rem 0.375rem;
    color: #ef4444;
    background: transparent;
    border: 1px solid #fecaca;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.625rem;
    line-height: 1;
}

.tool-btn-remove-kv:hover {
    background: #fef2f2;
}

.tool-btn-add-kv {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: var(--tool-primary);
    background: var(--tool-light);
    border: 1px dashed var(--tool-primary);
    border-radius: 0.25rem;
    cursor: pointer;
}

.tool-btn-add-kv:hover {
    background: var(--tool-primary);
    color: white;
    border-style: solid;
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
[data-theme="dark"] {
    --tool-light: rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .tool-page-header {
    background: var(--bg-secondary, #1e293b);
    border-bottom-color: var(--border, #334155);
}

[data-theme="dark"] .tool-page-title {
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .tool-breadcrumbs,
[data-theme="dark"] .tool-breadcrumbs a {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .tool-breadcrumbs a:hover {
    color: var(--tool-primary);
}

[data-theme="dark"] .tool-badge {
    background: var(--tool-light);
    color: var(--tool-primary);
}

[data-theme="dark"] .tool-description-section {
    background: var(--bg-secondary, #1e293b);
    border-bottom-color: var(--border, #334155);
}

[data-theme="dark"] .tool-description-content p {
    color: var(--text-secondary, #cbd5e1);
}

[data-theme="dark"] .tool-description-ad .ad-container {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

[data-theme="dark"] .tool-description-ad .ad-container.ad-loaded {
    background: var(--bg-secondary, #1e293b);
}

[data-theme="dark"] .tool-card {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border, #334155);
}

[data-theme="dark"] .tool-tabs {
    background: var(--bg-tertiary, #334155);
    border-bottom-color: var(--border, #475569);
}

[data-theme="dark"] .tool-tab {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .tool-tab:hover {
    background: var(--bg-secondary, #1e293b);
    color: var(--tool-primary);
}

[data-theme="dark"] .tool-tab.active {
    background: var(--tool-primary);
    color: white;
}

[data-theme="dark"] .tool-form-label {
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .tool-input,
[data-theme="dark"] .tool-select,
[data-theme="dark"] .tool-textarea {
    background: var(--bg-tertiary, #334155);
    border-color: var(--border, #475569);
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .tool-input:focus,
[data-theme="dark"] .tool-select:focus,
[data-theme="dark"] .tool-textarea:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .tool-input::placeholder,
[data-theme="dark"] .tool-textarea::placeholder {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tool-form-hint {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tool-section {
    background: var(--bg-tertiary, #334155);
}

[data-theme="dark"] .tool-section-header {
    color: var(--tool-primary);
}

[data-theme="dark"] .tool-section-header:hover {
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .tool-section-content {
    background: var(--bg-secondary, #1e293b);
    border-top-color: var(--border, #475569);
}

[data-theme="dark"] .tool-btn {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border, #475569);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .tool-btn:hover {
    background: var(--tool-primary);
    border-color: var(--tool-primary);
    color: white;
}

[data-theme="dark"] .tool-btn:disabled {
    background: var(--bg-tertiary, #334155);
    border-color: var(--border, #475569);
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tool-action-btn {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .tool-action-btn:disabled {
    background: var(--bg-tertiary, #334155);
    color: var(--text-muted, #64748b);
    box-shadow: none;
}

[data-theme="dark"] .tool-actions-bar {
    background: var(--bg-tertiary, #334155);
    border-bottom-color: var(--border, #475569);
}

[data-theme="dark"] .tool-format-toggle {
    background: var(--bg-tertiary, #334155);
}

[data-theme="dark"] .tool-format-btn {
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .tool-format-btn:hover {
    background: var(--bg-secondary, #1e293b);
}

[data-theme="dark"] .tool-format-btn.active {
    background: var(--tool-primary);
    color: white;
}

[data-theme="dark"] .tool-empty-state {
    background: var(--bg-tertiary, #334155);
}

[data-theme="dark"] .tool-empty-state h3 {
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .tool-empty-state p {
    color: var(--text-secondary, #94a3b8);
}

[data-theme="dark"] .tool-presets {
    background: var(--bg-tertiary, #334155);
    border-bottom-color: var(--border, #475569);
}

[data-theme="dark"] .tool-preset-btn {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border, #475569);
    color: var(--text-primary, #e2e8f0);
}

[data-theme="dark"] .tool-preset-btn:hover {
    background: var(--tool-primary);
    border-color: var(--tool-primary);
    color: white;
}

[data-theme="dark"] .tool-checkbox {
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .tool-kv-container {
    background: var(--bg-tertiary, #334155);
    border-color: var(--border, #475569);
}

[data-theme="dark"] .tool-kv-pair input {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border, #475569);
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .tool-btn-add-kv {
    background: rgba(99, 102, 241, 0.1);
}

/* Dark mode for .kv-* classes (legacy/simplified naming) */
[data-theme="dark"] .kv-container {
    background: var(--bg-tertiary, #334155);
    border-color: var(--border, #475569);
}

[data-theme="dark"] .kv-pair input,
[data-theme="dark"] .kv-key,
[data-theme="dark"] .kv-value,
[data-theme="dark"] .kv-extra {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--border, #475569);
    color: var(--text-primary, #f1f5f9);
}

[data-theme="dark"] .btn-add-kv {
    background: rgba(var(--tool-primary-rgb, 99, 102, 241), 0.1);
}

[data-theme="dark"] .btn-remove-kv {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

[data-theme="dark"] .btn-remove-kv:hover {
    background: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .tool-alert-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.3);
}

[data-theme="dark"] .tool-alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.3);
}

[data-theme="dark"] .tool-alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

[data-theme="dark"] .tool-alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* === [5/5] search.css === */
/**
 * Search Results Styling
 */

.search-results {
    position: fixed;
    background: var(--bg-primary, #ffffff);
    border: 2px solid var(--primary, #6366f1);
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    margin-top: 0;
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .search-results {
    background: var(--bg-secondary, #1e293b);
    border-color: var(--primary-light, #818cf8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.2);
}

.search-results.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary, #0f172a);
    border-bottom: 1px solid var(--border-light, #f1f5f9);
    background: var(--bg-primary, #ffffff);
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-icon {
    font-size: 1.25em;
    line-height: 1;
    flex-shrink: 0;
    width: 1.5em;
    text-align: center;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

[data-theme="dark"] .search-result-item {
    color: var(--text-dark, #f1f5f9);
    border-bottom-color: var(--border, #334155);
    background: var(--bg-secondary, #1e293b);
}

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

.search-result-item:hover,
.search-result-item.selected {
    background: var(--primary-50, #eef2ff);
    color: var(--primary-dark, #4f46e5);
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary, #6366f1);
    transform: translateX(2px);
}

[data-theme="dark"] .search-result-item:hover,
[data-theme="dark"] .search-result-item.selected {
    background: var(--bg-tertiary, #334155);
    color: var(--primary-light, #818cf8);
    border-left-color: var(--primary-light, #818cf8);
}

.search-result-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.375rem;
    font-weight: 600;
    display: block;
}

[data-theme="dark"] .search-result-category {
    color: var(--text-muted, #64748b);
}

.search-result-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
    line-height: 1.4;
    display: block;
}

[data-theme="dark"] .search-result-name {
    color: var(--text-dark, #f1f5f9);
}

.search-result-item:hover .search-result-name,
.search-result-item.selected .search-result-name {
    color: var(--primary-dark, #4f46e5);
}

[data-theme="dark"] .search-result-item:hover .search-result-name,
[data-theme="dark"] .search-result-item.selected .search-result-name {
    color: var(--primary-light, #818cf8);
}

.search-result-name mark {
    background: var(--warning-light, #fef3c7);
    color: var(--warning, #f59e0b);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .search-result-name mark {
    background: var(--warning, #f59e0b);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(245, 158, 11, 0.4);
}

.search-result-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary, #64748b);
    font-size: var(--text-sm, 0.875rem);
}

[data-theme="dark"] .search-result-empty {
    color: var(--text-muted, #94a3b8);
}

/* Scrollbar for results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 0 0.75rem 0.75rem 0;
}

[data-theme="dark"] .search-results::-webkit-scrollbar-track {
    background: var(--bg-tertiary, #334155);
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--border-dark, #cbd5e1);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

[data-theme="dark"] .search-results::-webkit-scrollbar-thumb {
    background: var(--border, #475569);
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary, #6366f1);
}

[data-theme="dark"] .search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light, #818cf8);
}


