        :root {
            --bg-primary: #f4f7f6;
            --bg-surface: #ffffff;
            --text-main: #0f172a;
            --text-muted: #475569;
            --accent: #059669;
            --accent-light: rgba(5, 150, 105, 0.08);
            --border-color: #cbd5e1;
            --radius: 12px;
            --card-transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
            --global-transition: background-color 0.25s ease, color 0.25s ease;
            --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.02);
            --shadow-md: 0 10px 15px -3px rgba(5, 150, 105, 0.05);
            --logo-grad: linear-gradient(135deg, #059669, #0d9488);
            --max-width: 1440px;
        }

        body.dark-theme {
            --bg-primary: #090d16;
            --bg-surface: #111827;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --border-color: #334155;
            --accent-light: rgba(13, 148, 136, 0.15);
            --accent: #0d9488;
            --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
            --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
            --logo-grad: linear-gradient(135deg, #0d9488, #14b8a6);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            background-color: var(--bg-primary);
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            transition: var(--global-transition);
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        header {
background: var(--bg-surface);
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem; /* Reduced from 1rem */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    height: 60px;            /* Added fixed height */
    display: flex;           /* Added flex layout alignment */
    align-items: center;     /* Added vertical centering */
        }

        .header-container {
width: 100%;             /* Added to ensure full span */
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
        }

        .logo-brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

.logo-icon-box {
    width: 32px;             /* Reduced from 36px */
    height: 32px;            /* Reduced from 36px */
    background: var(--logo-grad);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;         /* Reduced from 1.1rem */
}

.logo-text { 
    font-size: 1.2rem;       /* Reduced from 1.35rem */
    font-weight: 700; 
    letter-spacing: -0.03em; 
    color: var(--text-main); 
}
        .logo-text span { font-weight: 400; color: var(--text-muted); }

        .theme-toggle-btn {
 background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.45rem;        /* Reduced from 0.55rem */
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--global-transition);
    display: flex;
    align-items: center;
    justify-content: center;
        }

        .hero {
            background: var(--bg-surface);
            border-bottom: 2px solid var(--border-color);
            padding: 4rem 1.5rem;
            text-align: center;
            transition: padding 0.2s ease;
        }
        .hero.searching { padding: 2rem 1.5rem; }

        .hero-content { max-width: 650px; margin: 0 auto; }
        
        .hero h1 {
            font-size: 2.5rem; margin-bottom: 0.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.2;
            transition: font-size 0.2s ease, margin-bottom 0.2s ease;
        }
        .hero.searching h1 { font-size: 1.75rem; margin-bottom: 1rem; }
        
        .hero p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.6; }
        .hero.searching p { display: none; }

        .search-wrapper { position: relative; width: 100%; max-width: 550px; margin: 0 auto; }
        .search-wrapper i.fa-magnifying-glass { position: absolute; left: 1.25rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1rem; }

        .search-input {
            width: 100%; padding: 1rem 1.25rem 1rem 3rem; font-size: 1rem; border: 2px solid var(--border-color); border-radius: var(--radius); outline: none; background: var(--bg-primary); color: var(--text-main); transition: border-color 0.15s ease, background-color 0.15s ease;
        }
        .search-input:focus { border-color: var(--accent); background: var(--bg-surface); }

        .clear-search-btn { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: var(--text-muted); cursor: pointer; display: none; font-size: 1.1rem; }

        .layout { max-width: var(--max-width); width: 100%; margin: 0 auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: 280px 1fr; gap: 3rem; flex: 1; }

        aside { position: sticky; top: 100px; height: calc(100vh - 140px); overflow-y: auto; }
        .category-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

        .category-btn {
            width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.1rem; border: 1px solid transparent; background: transparent; border-radius: var(--radius); cursor: pointer; text-align: left; font-size: 1rem; font-weight: 600; color: var(--text-muted); transition: all 0.15s ease;
        }
        .category-btn div { display: flex; align-items: center; gap: 0.85rem; }
        .category-btn:hover { background-color: var(--bg-surface); border-color: var(--border-color); color: var(--text-main); }
        .category-btn.active { background-color: var(--accent-light); border-color: var(--accent); color: var(--accent); }

        .count { font-size: 0.8rem; font-weight: 700; background: var(--border-color); color: var(--text-muted); padding: 4px 10px; border-radius: 20px; }
        .category-btn.active .count { background: var(--accent); color: white; }

        .main-content { padding-top: 0; }
        .toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; border-bottom: 2px solid var(--border-color); padding-bottom: 1rem; gap: 1rem; }
        .toolbar h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
        .sort-select { padding: 0.55rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); color: var(--text-main); outline: none; cursor: pointer; font-size: 0.9rem; font-weight: 500; }

        .dashboard-section { margin-bottom: 3rem; display: none;}
        .dashboard-section.visible { display: block; }
        .dashboard-section h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: space-between; }

        .tools-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }

        .tool-card {
            background: var(--bg-surface); border: 2px solid var(--border-color); border-radius: var(--radius); padding: 1.5rem; color: inherit; display: flex; flex-direction: column; position: relative; transition: var(--card-transition);
        }
        .tool-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-md); }
        .tool-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 1rem; height: 100%; width: 100%; }

        .tool-icon { width: 46px; height: 46px; background: var(--accent-light); color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
        .tool-info h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
        .tool-info p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
        
        .status-pill { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; background: var(--bg-primary); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 6px; color: var(--text-muted); width: fit-content; margin-top: auto; }
        .pulse-dot { width: 6px; height: 6px; background-color: var(--accent); border-radius: 50%; }

        .fav-btn { position: absolute; top: 1.5rem; right: 1.5rem; background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.25rem; z-index: 2; transition: transform 0.1s ease; }
        .fav-btn:hover { transform: scale(1.1); }
        .fav-btn.is-fav { color: #f59e0b; }

        /* Empty State Styling */
        .empty-state { display: none; text-align: center; padding: 4rem 2rem; background: var(--bg-surface); border: 2px dashed var(--border-color); border-radius: var(--radius); grid-column: 1 / -1; }
        .empty-state.visible { display: block; }
        .empty-icon { font-size: 3rem; color: var(--text-muted); margin-bottom: 1rem; }
        .empty-state h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
        .empty-state p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; line-height: 1.5; }
        .empty-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; }
        .empty-btn { padding: 0.6rem 1.2rem; font-size: 0.9rem; font-weight: 600; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-surface); color: var(--text-main); cursor: pointer; transition: all 0.15s ease; }
        .empty-btn:hover { border-color: var(--accent); color: var(--accent); }
        .empty-btn.primary-btn { background: var(--accent); color: white; border-color: var(--accent); }
        .empty-btn.primary-btn:hover { opacity: 0.9; color: white; }

        /* About Section Styling */
        .about-section {
            max-width: var(--max-width);
            width: 100%;
            margin: 0 auto;
            padding: 0 1.5rem 4rem 1.5rem;
        }

        .about-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            border-top: 2px solid var(--border-color);
            padding-top: 3rem;
        }

        .about-card {
            background: var(--bg-surface);
            border: 2px solid var(--border-color);
            border-radius: var(--radius);
            padding: 2.25rem;
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .about-card h2 {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .about-card h2 i {
            color: var(--accent);
            font-size: 1.25rem;
        }

        .about-card p {
            color: var(--text-muted);
            font-size: 1rem;
            line-height: 1.65;
        }

        .suggestion-box {
            margin-top: auto;
            background: var(--accent-light);
            border-left: 4px solid var(--accent);
            padding: 1.25rem;
            border-radius: 6px;
        }

        .suggestion-box span {
            display: block;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 0.5rem;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .suggestion-box p {
            font-size: 0.95rem;
            line-height: 1.5;
        }

        /* Footer Section Styling */
        footer {
            background: var(--bg-surface);
            border-top: 2px solid var(--border-color);
            padding: 2.5rem 1.5rem;
            margin-top: auto;
        }

        .footer-container {
            max-width: var(--max-width);
            margin: 0 auto;
            color: var(--text-muted);
            font-size: 0.95rem;
            line-height: 1.6;
            text-align: center;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1rem;
            list-style: none;
            padding: 0;
        }

        .footer-links a {
            color: var(--text-muted);
            text-decoration: none;
            transition: color 0.15s ease;
        }

        .footer-links a:hover {
            color: var(--accent);
        }

        .copyright {
            font-size: 0.875rem;
        }

        @media (max-width: 1024px) {
            .layout { grid-template-columns: 240px 1fr; gap: 2rem; }
        }

        @media (max-width: 900px) {
            .layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem; }
            aside { position: sticky; top: 74px; height: auto; padding: 0.5rem 0; margin: 0 -1rem; background: var(--bg-surface); border-bottom: 2px solid var(--border-color); overflow-x: auto; z-index: 90; scrollbar-width: none; }
            aside::-webkit-scrollbar { display: none; }
            .category-list { flex-direction: row; padding: 0 1rem; }
            .category-btn { padding: 0.6rem 1.2rem; white-space: nowrap; border: 1px solid var(--border-color); width: auto; }
            .count { display: none; }
            .tools-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
            .hero h1 { font-size: 2rem; }
            .hero.searching h1 { font-size: 1.5rem; }
            .about-container { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; }
            .about-section { padding-bottom: 2rem; }
        }

        @media (max-width: 480px) {
            .hero { padding: 2.5rem 1rem; }
            .hero h1 { font-size: 1.75rem; }
            .hero.searching h1 { font-size: 1.35rem; }
            .tools-container { grid-template-columns: 1fr; }
            .toolbar { flex-direction: column; align-items: flex-start; }
            .sort-select { width: 100%; }
            .footer-links { flex-direction: column; gap: 0.5rem; }
        }

        @media (min-width: 1025px) and (max-width: 1600px) {
            body {
                zoom: 75%;
            }
        }

        @media (max-width: 1024px) {
            .layout { grid-template-columns: 240px 1fr; gap: 2rem; }
        }

        @media (max-width: 900px) {
            .layout { grid-template-columns: 1fr; gap: 1.5rem; padding: 1rem; }
            aside { position: sticky; top: 74px; height: auto; padding: 0.5rem 0; margin: 0 -1rem; background: var(--bg-surface); border-bottom: 2px solid var(--border-color); overflow-x: auto; z-index: 90; scrollbar-width: none; }
            aside::-webkit-scrollbar { display: none; }
            .category-list { flex-direction: row; padding: 0 1rem; }
            .category-btn { padding: 0.6rem 1.2rem; white-space: nowrap; border: 1px solid var(--border-color); width: auto; }
            .count { display: none; }
            .tools-container { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
            .hero { padding: 3rem 1.5rem; }
            .hero h1 { font-size: 1.85rem; }
            .hero p { font-size: 0.95rem; margin-bottom: 1.5rem; }
            .hero.searching h1 { font-size: 1.5rem; }
        }

        @media (max-width: 480px) {
            .hero { padding: 1.75rem 1rem; }
            .hero h1 { font-size: 1.45rem; letter-spacing: -0.02em; }
            .hero p { font-size: 0.85rem; margin-bottom: 1.25rem; }
            .hero.searching h1 { font-size: 1.2rem; }
            .search-input { padding: 0.85rem 1rem 0.85rem 2.5rem; font-size: 0.9rem; }
            .search-wrapper i.fa-magnifying-glass { left: 1rem; font-size: 0.9rem; }
            .tools-container { grid-template-columns: 1fr; }
            .toolbar { flex-direction: column; align-items: flex-start; }
            .sort-select { width: 100%; }
        }
