:root {
    /* Dark Theme (Sidebar & Topbar) */
    --bg: #11232c;           /* Deepened Teal for Futuristic look */
    --panel: rgba(26, 57, 71, 0.8); 
    --accent: #FA7143;       
    --accent-glow: rgba(250, 113, 67, 0.4);
    
    /* Light Theme (Main Content) */
    --main-bg: #f8fafc;      
    --card-bg: #ffffff;      
    --text-main: #1A3947;    
    --text-muted: #64748b;   
    --border-light: #e2e8f0; 
    
    /* Text Colors */
    --text-light: #f8fafc;
    --muted-light: #8ca8b5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--main-bg);
    color: var(--text-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- FUTURISTIC TOPBAR --- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 70px;
    background: var(--bg);
    background-image: linear-gradient(90deg, #11232c 0%, #1A3947 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    z-index: 10;
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.brand { display: flex; align-items: center; gap: 1rem; }

.logo-glow {
    background: rgba(250, 113, 67, 0.1);
    border: 1px solid rgba(250, 113, 67, 0.3);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(250, 113, 67, 0.2);
}

.brand h1 { 
    font-size: 1.2rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    color: var(--text-light); 
    margin-bottom: 2px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: var(--muted-light);
    letter-spacing: 1px;
}
.status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.user-avatar-sm {
    background: var(--accent);
    color: #fff;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
}

/* --- APP LAYOUT --- */
.app-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* --- FUTURISTIC SIDEBAR --- */
.sidebar {
    width: 260px;
    background: var(--bg);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1rem;
    overflow-y: auto;
    flex-shrink: 0;
    position: relative;
}

/* Subtle background glow in the sidebar */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 200px;
    background: radial-gradient(circle at 0% 0%, rgba(250, 113, 67, 0.08), transparent 70%);
    pointer-events: none;
}

.sidebar-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

.sidebar nav { display: flex; flex-direction: column; gap: 0.4rem; }

.sidebar a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    color: var(--muted-light);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.sidebar a .text { font-size: 0.95rem; }
.sidebar a .icon { font-size: 1.2rem; opacity: 0.8; transition: all 0.3s; }

.sidebar a:hover { 
    background: rgba(255,255,255,0.03); 
    color: var(--text-light);
    border-color: rgba(255,255,255,0.05);
}
.sidebar a:hover .icon { opacity: 1; transform: scale(1.1); }

/* The Futuristic Active State */
.sidebar a.active {
    background: linear-gradient(90deg, rgba(250, 113, 67, 0.15) 0%, transparent 100%);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    box-shadow: inset 20px 0 20px -20px var(--accent-glow);
}
.sidebar a.active .icon { opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }

/* --- MAIN CONTENT AREA --- */
.main-content {
    flex: 1;
    padding: 2.5rem;
    overflow-y: auto;
    background-color: var(--main-bg);
    color: var(--text-main);
}

/* ... Keep your existing Search Bar, Cards, and Footer CSS from the previous file ... */
.search-wrap { margin-bottom: 2rem; }
#toolSearch { width: 100%; padding: 1rem 1.5rem; font-size: 1rem; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 12px; color: var(--text-main); outline: none; transition: all 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
#toolSearch:focus { border-color: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.category { margin-bottom: 3rem; }
.category h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-main); margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border-light); display: flex; align-items: center; gap: 10px; }
.category h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--accent) 0%, transparent 100%); opacity: 0.6; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.card { display: flex; align-items: center; gap: 1.2rem; padding: 1.5rem; background: var(--card-bg); border: 1px solid var(--border-light); border-radius: 16px; text-decoration: none; color: var(--text-main); transition: all 0.3s; position: relative; overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03); }
.card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); opacity: 0; transition: opacity 0.3s; }
.card:hover { border-color: rgba(250, 113, 67, 0.3); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 15px rgba(250, 113, 67, 0.1); }
.card:hover::before { opacity: 1; }
.card .icon { font-size: 2rem; background: #f1f5f9; padding: 12px; border-radius: 12px; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; font-weight: 600; color: var(--text-main); }
.card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.no-results { text-align: center; color: var(--text-muted); padding: 3rem; }
.footer { text-align: center; padding: 1rem; color: var(--muted-light); font-size: 0.8rem; border-top: 1px solid var(--border-dark); background: var(--bg); flex-shrink: 0; letter-spacing: 1px; }
