:root {
    --bg: #ffffff;
    --text: #1a1a2e;
    --muted: #5a5f7a;
    --line: #e8eaf0;
    --purple: #6257e8;
    --purple-dark: #5146c9;
    --card-shadow: 0 4px 20px rgba(98, 87, 232, 0.08);
    --card-shadow-hover: 0 8px 30px rgba(98, 87, 232, 0.15);
}

html, body { margin: 0; padding: 0; }
body {
    font-family: Arial, "Noto Sans Devanagari", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
button, input { font: inherit; }

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 250px;
    background: linear-gradient(180deg, #1a1f35 0%, #12162a 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
}
.brand { padding: 22px 22px; font-size: 22px; font-weight: 800; border-bottom: 1px solid #ffffff15; }
.brand span { color: #b8b3ff; }
.nav-label { font-size: 11px; letter-spacing: 1.5px; color: #a0a8c0; padding: 20px 22px 8px; font-weight: 700; }
.nav-item {
    display: flex; align-items: center; gap: 10px;
    margin: 3px 12px; padding: 11px 14px;
    border-radius: 10px; color: #e8ebf5; font-size: 14.5px;
    transition: .2s;
}
.nav-item:hover { background: #ffffff12; color: #fff; }
.nav-item.active { background: linear-gradient(100deg, #6559ed, #5146c9); color: #fff; }
.nav-item .count { margin-left: auto; font-size: 11px; background: #ffffff20; padding: 3px 8px; border-radius: 6px; }
.side-bottom { margin-top: auto; padding: 18px 22px; border-top: 1px solid #ffffff15; color: #a0a8c0; font-size: 12px; }

.main { margin-left: 250px; min-height: 100vh; }
.topbar {
    height: 68px; background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px;
    padding: 0 28px; box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.hamburger { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb strong { color: var(--text); }
.top-spacer { flex: 1; }
.header-search input {
    border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 14px; font-size: 14px; width: 260px; background: #fafbff;
}
.content { max-width: 1200px; margin: 0 auto; padding: 32px 28px; }

/* Cards common */
.stat, .category-card, .tool-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    transition: .25s ease;
    box-shadow: var(--card-shadow);
}
.stat:hover, .category-card:hover, .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: #d0d4e8;
}

/* Footer */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 32px 28px;
    margin-left: 250px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* Overlay */
.overlay { display: none; position: fixed; inset: 0; background: #0d1224aa; z-index: 90; }
.overlay.show { display: block; }

/* Responsive */
@media (max-width: 760px) {
    .sidebar { transform: translateX(-100%); transition: .25s; }
    .sidebar.show { transform: translateX(0); }
    .main, .site-footer { margin-left: 0; }
    .hamburger { display: block; }
    .header-search { display: none; }
    .content { padding: 20px 16px; }
}
