* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background:#0b0f1a; color:#fff; }

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: #0f1424;
  padding: 20px;
}
.logo { margin-bottom: 20px; }

/* Sidebar nav: one-line icon + label (no boxed icon) */
.side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    cursor: pointer;
    transition: .16s ease;
}

    .side-nav a:hover {
        color: rgba(255,255,255,.95);
        background: rgba(255,255,255,.06);
    }

.sidebar hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 14px 0;
}

/* Main */
.main {
  display: grid;
  grid-template-rows: 60px 1fr;
}

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

/* Content */
.content {
  padding: 24px;
}


/* Dashboard layout helpers */
.page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.muted {
    opacity: .7;
}

.small {
    font-size: 12.5px;
    line-height: 1.4;
}

.h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -.2px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 14px;
}

.kpi {
    padding: 14px;
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kpi-label {
    font-size: 12px;
    opacity: .75;
}

.kpi-value {
    font-weight: 800;
    font-size: 18px;
    margin-top: 8px;
    letter-spacing: -.2px;
}

.kpi-sub {
    margin-top: 4px;
    font-size: 12.5px;
    opacity: .7;
}

.pill-status {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 12px;
    align-items: start;
}

.stack {
    display: grid;
    gap: 12px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.mini-link {
    font-size: 13px;
    opacity: .75;
}

    .mini-link:hover {
        opacity: 1;
        text-decoration: underline;
    }

/* Table */
.table {
    display: grid;
    gap: 8px;
}

.row {
    display: grid;
    grid-template-columns: 1.6fr .8fr 1.3fr .8fr .4fr;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
    text-decoration: none;
    color: inherit;
    transition: .16s ease;
}

    .row:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.14);
    }

    .row.head {
        background: transparent;
        border: none;
        padding: 0 6px 6px;
        opacity: .7;
        font-size: 12px;
    }

        .row.head:hover {
            transform: none;
        }

.title {
    font-weight: 700;
    letter-spacing: -.1px;
}

.right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.cta {
    opacity: .85;
    font-weight: 700;
}

    .cta:hover {
        text-decoration: underline;
    }

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
}

    .status-pill.review {
        border-color: rgba(35,211,255,.35);
        background: rgba(35,211,255,.10);
    }

    .status-pill.editing {
        border-color: rgba(124,92,255,.35);
        background: rgba(124,92,255,.10);
    }

    .status-pill.delivered {
        border-color: rgba(53,240,166,.35);
        background: rgba(53,240,166,.10);
    }

    .status-pill.queued {
        border-color: rgba(255,255,255,.18);
        background: rgba(255,255,255,.06);
    }

.pill-status.review {
    border-color: rgba(35,211,255,.35);
    background: rgba(35,211,255,.10);
}

.pill-status.editing {
    border-color: rgba(124,92,255,.35);
    background: rgba(124,92,255,.10);
}

.pill-status.delivered {
    border-color: rgba(53,240,166,.35);
    background: rgba(53,240,166,.10);
}

.pill-status.due {
    border-color: rgba(255,200,80,.35);
    background: rgba(255,200,80,.10);
}

/* Progress */
.progress {
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    overflow: hidden;
}

    .progress .bar {
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(35,211,255,.85));
    }

/* Feed */
.feed {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.feed-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 4px;
    background: rgba(255,255,255,.35);
}

    .dot.review {
        background: rgba(35,211,255,.9);
    }

    .dot.editing {
        background: rgba(124,92,255,.9);
    }

    .dot.delivered {
        background: rgba(53,240,166,.9);
    }

/* Quick links */
.quick {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.quick-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.16);
    text-decoration: none;
    color: inherit;
    transition: .16s ease;
}

    .quick-item:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.14);
    }

.q-ico {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}

/* Responsive */
@media (max-width: 980px) {
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .row {
        grid-template-columns: 1.2fr .8fr 1.2fr .8fr .8fr .4fr;
    }
}

/* Sidebar nav with icons */
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 12px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    cursor: pointer;
    transition: .16s ease;
}

    .side-nav a:hover {
        color: rgba(255,255,255,.95);
        background: rgba(255,255,255,.06);
        transform: translateY(-1px);
    }

.nav-ico {
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: inline-flex;
    place-items: unset;
    font-size: 18px;
    line-height: 1;
}

/* Fancy page title (Dashboard) */
.page-title {
    font-size: 36px;
    font-weight: 950;
    letter-spacing: -0.9px;
    margin: 0;
    line-height: 1.05;
    display: inline-block;
    background: linear-gradient(90deg, rgba(124,92,255,1), rgba(35,211,255,1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 6px;
}

    .page-title::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(35,211,255,.75));
        opacity: .9;
    }


/* Light content area (right side), keep sidebar/topbar dark */
.content {
    background: #f6f7fb;
    color: #0b0f1a;
    min-height: calc(100vh - 60px);
    border-top-left-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.04);
}

    /* Make muted text readable on light background */
    .content .muted {
        opacity: .65;
        color: rgba(10,12,18,.65);
    }

    /* Make cards readable on light background */
    .content .card {
        background: #ffffff;
        border: 1px solid rgba(10,12,18,.08);
        box-shadow: 0 16px 40px rgba(10,12,18,.08);
    }

    /* Table rows on light bg */
    .content .row {
        background: #ffffff;
        border: 1px solid rgba(10,12,18,.08);
    }

        .content .row:hover {
            background: #f1f3f9;
            border-color: rgba(10,12,18,.12);
        }

        /* Fix row.head styling on light bg */
        .content .row.head {
            opacity: .65;
            color: rgba(10,12,18,.65);
        }
