:root {
    --primary: #0062ff;
    --bg-app: #09090b;
    --bg-side: #121214;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --sidebar-w: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-app);
    color: var(--text-main);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* ================= Sidebar ================= */

.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-side);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding-left: 8px;
}

.brand-square {
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 6px;
}

.brand-name {
    font-weight: 700;
    letter-spacing: 2px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 8px;
    transition: 0.2s;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
}

.nav-item i {
    width: 18px;
}

/* ================= Main ================= */

.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.top-nav {
    height: 64px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    width: 400px;
}

.search-bar input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    outline: none;
}

/* ================= Content ================= */

.content-area {
    padding: 40px;
}

.content-area h1 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.content-area p {
    color: var(--text-muted);
}

/* ================= Mobile ================= */

@media (max-width: 768px) {

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 60px;
        position: fixed;
        bottom: 0;
        left: 0;
        flex-direction: row;
        justify-content: space-around;
        padding: 0 10px;
        border-right: none;
        border-top: 1px solid var(--border);
        z-index: 1000;
    }

    .brand,
    .sidebar-footer,
    .nav-item span {
        display: none;
    }

    .side-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

    .main-content {
        margin-bottom: 60px;
    }

    .top-nav {
        padding: 0 16px;
    }

    .search-bar {
        width: 160px;
    }

    .content-area {
        padding: 24px;
    }
}