* {
    box-sizing: border-box;
}


:root {

    --bg: #f5f6f7;
    --surface: #ffffff;
    --border: #e6e8eb;

    --text: #171717;
    --muted: #74777c;

    --dark: #151515;
    --accent: #d8ff3e;

}


html,
body {

    margin: 0;
    padding: 0;

    min-height: 100%;

}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--bg);
    color: var(--text);

}


button,
input,
select,
textarea {

    font: inherit;

}


.app {

    min-height: 100vh;

    display: flex;

}


/* =========================
   SIDEBAR
========================= */

.sidebar {

    width: 240px;

    background: var(--dark);
    color: #ffffff;

    display: flex;
    flex-direction: column;

    padding: 26px 18px;

}


.brand {

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 10px 34px;

    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;

}


.brand-mark {

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--accent);
    color: var(--dark);

    font-weight: 900;

}


.navigation {

    display: flex;
    flex-direction: column;
    gap: 4px;

}


.nav-item {

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 11px 12px;

    border-radius: 9px;

    color: #a9abad;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background .15s ease,
        color .15s ease;

}


.nav-item:hover {

    background: rgba(255,255,255,.06);
    color: #ffffff;

}


.nav-item.active {

    background: rgba(216,255,62,.12);
    color: var(--accent);

}


.nav-icon {

    width: 20px;

    text-align: center;

    font-size: 16px;

}


.sidebar-bottom {

    margin-top: auto;

}


/* =========================
   MAIN
========================= */

.main {

    flex: 1;

    min-width: 0;

}


.topbar {

    height: 88px;

    padding: 0 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--surface);

    border-bottom: 1px solid var(--border);

}


.eyebrow {

    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .12em;

    margin-bottom: 4px;

}


h1 {

    margin: 0;

    font-size: 25px;

    letter-spacing: -.03em;

}


.user-area {

    display: flex;
    align-items: center;
    gap: 10px;

}


.user-avatar {

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--accent);

    color: var(--dark);

    font-weight: 800;

}


.user-info {

    display: flex;
    flex-direction: column;

    gap: 2px;

}


.user-info strong {

    font-size: 13px;

}


.user-info span {

    color: var(--muted);

    font-size: 11px;

}


/* =========================
   CONTENT
========================= */

.content {

    max-width: 1400px;

    margin: 0 auto;

    padding: 38px 42px 60px;

}


.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

}


.stat-card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    padding: 22px;

}


.stat-label {

    color: var(--muted);

    font-size: 13px;
    font-weight: 600;

}


.stat-value {

    margin-top: 9px;

    font-size: 31px;
    font-weight: 750;

    letter-spacing: -.04em;

}


.stat-meta {

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;

}


/* =========================
   SECTION
========================= */

.section-header {

    margin-top: 42px;
    margin-bottom: 17px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

}


.section-header h2 {

    margin: 0 0 5px;

    font-size: 18px;

    letter-spacing: -.02em;

}


.section-header p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;

}


.button {

    border: 1px solid var(--border);

    background: var(--surface);

    color: var(--text);

    border-radius: 8px;

    padding: 9px 13px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

}


/* =========================
   TABLE
========================= */

.card {

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

}


.table-wrapper {

    overflow-x: auto;

}


table {

    width: 100%;

    border-collapse: collapse;

    min-width: 700px;

}


th {

    padding: 14px 20px;

    background: #fafafa;

    border-bottom: 1px solid var(--border);

    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: .06em;

}


td {

    padding: 17px 20px;

    border-bottom: 1px solid var(--border);

    font-size: 13px;

}


tbody tr:last-child td {

    border-bottom: 0;

}


.lead-cell {

    display: flex;
    align-items: center;

    gap: 11px;

}


.lead-avatar {

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #eceef0;

    font-weight: 800;
    font-size: 12px;

}


.lead-cell div:last-child {

    display: flex;
    flex-direction: column;

    gap: 3px;

}


.lead-cell strong {

    font-size: 13px;

}


.lead-cell span {

    color: var(--muted);

    font-size: 11px;

}


/* =========================
   STATUS
========================= */

.status {

    display: inline-flex;

    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 700;

}


.status.new {

    background: #eef4dc;

    color: #59691f;

}


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

@media (max-width: 800px) {

    .sidebar {

        width: 68px;

        padding: 20px 10px;

    }


    .brand {

        justify-content: center;

        padding-left: 0;
        padding-right: 0;

    }


    .brand span,
    .nav-item:not(.active) {

        /* handled below */

    }


    .nav-item {

        justify-content: center;

        padding-left: 8px;
        padding-right: 8px;

    }


    .nav-item {

        font-size: 0;

    }


    .nav-icon {

        font-size: 16px;

    }


    .topbar {

        padding: 0 22px;

    }


    .content {

        padding: 28px 22px 50px;

    }


    .stats-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .user-info {

        display: none;

    }

}


@media (max-width: 500px) {

    .stats-grid {

        grid-template-columns: 1fr;

    }


    .section-header {

        align-items: flex-start;

        gap: 15px;

        flex-direction: column;

    }

}
/* Lead list viewport alignment */
.main { min-height: 100vh; overflow: auto; }
.content { padding-top: 24px; }
