
/* =========================================================
   ROOT
========================================================= */

:root {
    --bg: #070b12;
    --bg2: #0b111a;
    --bg3: #0f1722;
    --bg4: #121d2a;

    --border: rgba(255,255,255,.07);
    --border2: rgba(255,255,255,.12);

    --text: #eef5fb;
    --text2: #9caec0;
    --text3: #637588;

    --sky: #4a9ee8;
    --sky2: #2386d5;

    --green: #3dcc8e;
    --orange: #f0a030;
    --red: #e85a5a;
    --purple: #8888f8;

    --max-w: 1380px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 80% 10%,
            rgba(35,134,213,.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 40%,
            rgba(61,204,142,.04),
            transparent 25%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        'DM Sans',
        sans-serif;

    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

/* =========================================================
   TOP NAV
========================================================= */

nav {
    height: 76px;

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

    background: rgba(7, 11, 18, .82);

    backdrop-filter: blur(18px);

    position: sticky;
    top: 0;

    z-index: 100;
}


/* =========================================================
   NAV CONTAINER
========================================================= */

.nav-container {
    width: min(
        var(--max-w),
        calc(100% - 48px)
    );

    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 12px;

    font-family: 'Outfit', sans-serif;

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

    text-decoration: none;

    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;

    border-radius: 11px;

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

    color: white;

    background:
        linear-gradient(
            135deg,
            #00e5ff,
            #007cff,
            #144fff
        );

    box-shadow:
        0 0 18px rgba(0, 153, 255, .35);

    font-size: 17px;

    flex-shrink: 0;
}

.logo span {
    color: white;

    white-space: nowrap;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {
    display: flex;
    align-items: center;

    gap: 26px;

    margin-left: auto;

    color: var(--text2);

    font-size: 13px;
}

.nav-links a {
    color: inherit;

    text-decoration: none;

    white-space: nowrap;

    transition: .2s;
}

.nav-links a:hover {
    color: white;
}


/* =========================================================
   NAV RIGHT
========================================================= */

.nav-right {
    display: flex;
    align-items: center;

    gap: 12px;

    flex-shrink: 0;
}


/* =========================================================
   NOTIFICATION
========================================================= */

.notification {
    width: 38px;
    height: 38px;

    border-radius: 10px;

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

    background: var(--bg3);

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

    cursor: pointer;

    color: var(--text2);

    position: relative;

    transition: .2s;
}

.notification:hover {
    color: white;

    border-color: var(--sky);

    background: var(--bg2);
}

.notification-dot {
    position: absolute;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--red);

    top: 7px;
    right: 7px;

    box-shadow:
        0 0 8px rgba(232, 90, 90, .8);
}


/* =========================================================
   PROFILE
========================================================= */

.profile {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 6px 10px;

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

    border-radius: 10px;

    color: var(--text2);

    white-space: nowrap;
}

.avatar {
    width: 30px;
    height: 30px;

    border-radius: 8px;

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

    background:
        linear-gradient(
            135deg,
            #147bd1,
            #624bd8
        );

    color: white;

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

    flex-shrink: 0;
}


/* =========================================================
   HAMBURGER
========================================================= */

.hamburger {
    display: none;

    width: 40px;
    height: 40px;

    padding: 8px;

    margin-left: auto;

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

    border-radius: 9px;

    background: var(--bg3);

    cursor: pointer;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.hamburger span {
    display: block;

    width: 20px;
    height: 2px;

    border-radius: 5px;

    background: var(--text);

    transition: .25s ease;
}


/* =========================================================
   HAMBURGER ANIMATION
========================================================= */

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   LARGE TABLETS
========================================================= */

@media (max-width: 1050px) {

    .nav-container {
        width: calc(100% - 36px);
    }

    .nav-links {
        gap: 17px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .profile {
        padding: 5px 8px;
    }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 850px) {

    .nav-container {
        width: calc(100% - 30px);
    }

    /*
       Hide navigation links.
       Hamburger takes over.
    */

    .nav-links {
        display: none;

        position: absolute;

        top: 76px;
        left: 0;
        right: 0;

        width: 100%;

        padding: 12px;

        margin: 0;

        flex-direction: column;
        align-items: stretch;

        gap: 4px;

        background: rgba(7, 11, 18, .97);

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

        box-shadow:
            0 15px 35px rgba(0, 0, 0, .3);

        backdrop-filter: blur(18px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 14px 16px;

        border-radius: 8px;

        font-size: 13px;
    }

    .nav-links a:hover {
        background: var(--bg3);
    }


    /* Show hamburger */

    .hamburger {
        display: flex;
        margin-left: -25px;
    }

}




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

@media (max-width: 600px) {

    nav {
        height: 64px;
    }

    .nav-container {
        width: calc(100% - 20px);
    }


    /* Logo */

    .logo {
        gap: 8px;

        font-size: 15px;
    }

    .logo-icon {
        width: 34px;
        height: 34px;

        border-radius: 9px;

        font-size: 15px;
    }


    /* Keep notification */

    .notification {
        width: 36px;
        height: 36px;
        margin-left: -20px;
    }


    /*
       Hide profile text.
       Keep avatar.
    */

    .profile {
        padding: 2px;

        border: 0;
    }

    .profile span {
        display: none;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }


    .nav-right {
        gap: 7px;
    }


    /* Hamburger */

    .hamburger {
        width: 38px;
        height: 38px;
    }


    /* Dropdown position */

    .nav-links {
        top: 64px;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .nav-container {
        width: calc(100% - 14px);
    }

    .logo span {
        font-size: 13px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .notification {
        width: 34px;
        height: 34px;
    }

    .avatar {
        width: 30px;
        height: 30px;
    }

    .hamburger {
        width: 36px;
        height: 36px;
    }

}


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

.container {
    width: min(
        var(--max-w),
        calc(100% - 48px)
    );

    margin: auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header {
    padding: 46px 0 30px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 25px;
}

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--green);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1.4px;

    font-weight: 600;

    margin-bottom: 10px;
}

.live-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 10px rgba(61,204,142,.8);

    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: .5;
        transform: scale(.85);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

h1 {
    font-family: 'Outfit', sans-serif;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1;

    letter-spacing: -.04em;

    margin-bottom: 12px;
}

.page-description {
    color: var(--text2);

    font-size: 14px;

    max-width: 620px;

    line-height: 1.7;
}

.header-actions {
    display: flex;

    gap: 10px;
}

.btn {
    height: 42px;

    padding: 0 17px;

    border-radius: 9px;

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

    background: var(--bg3);

    color: var(--text2);

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    cursor: pointer;

    font-size: 12px;

    transition: .2s;
}

.btn:hover {
    border-color: rgba(74,158,232,.45);

    color: white;

    transform: translateY(-1px);
}

.btn-primary {
    background:
        linear-gradient(
            135deg,
            #1987da,
            #2867e8
        );

    border-color: transparent;

    color: white;

    box-shadow:
        0 8px 25px rgba(35,134,213,.2);
}


/* =========================================================
   STAT CARDS
========================================================= */

.stats {
    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}

.stat-card {
    position: relative;

    overflow: hidden;

    padding: 20px;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(18,29,42,.96),
            rgba(11,17,26,.96)
        );

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

    transition: .25s;
}

.stat-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(74,158,232,.25);
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -35px;
    top: -45px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(74,158,232,.14),
            transparent 70%
        );
}

.stat-top {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}

.stat-icon {
    width: 36px;
    height: 36px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(74,158,232,.10);

    border:
        1px solid rgba(74,158,232,.16);

    color: var(--sky);
}

.stat-change {
    font-size: 10px;

    padding: 5px 8px;

    border-radius: 6px;

    background:
        rgba(61,204,142,.09);

    color: var(--green);
}

.stat-number {
    font-family: 'Outfit', sans-serif;

    font-size: 30px;

    font-weight: 700;

    margin-bottom: 3px;
}

.stat-label {
    font-size: 12px;

    color: var(--text3);
}

.stat-description {
    margin-top: 15px;

    color: var(--text3);

    font-size: 10px;
}

.progress {
    height: 4px;

    background: rgba(255,255,255,.05);

    border-radius: 20px;

    margin-top: 8px;

    overflow: hidden;
}

.progress span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--sky),
            #6dc5ff
        );
}


/* =========================================================
   DASHBOARD GRID
========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(300px, .85fr);

    gap: 18px;

    margin-bottom: 18px;
}

.card {
    background:
        linear-gradient(
            145deg,
            rgba(15,23,34,.98),
            rgba(10,16,24,.98)
        );

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

    border-radius: 15px;

    overflow: hidden;
}

.card-header {
    padding: 18px 20px;

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

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}

.card-title {
    font-family: 'Outfit', sans-serif;

    font-size: 15px;

    font-weight: 600;
}

.card-subtitle {
    color: var(--text3);

    font-size: 10px;

    margin-top: 3px;
}

.card-body {
    padding: 20px;
}


/* =========================================================
   INVENTORY CHART
========================================================= */

.chart-summary {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 22px;
}

.chart-total {
    font-family: 'Outfit', sans-serif;

    font-size: 31px;

    font-weight: 700;
}

.chart-total small {
    color: var(--text3);

    font-size: 11px;

    font-family: 'DM Sans';
    font-weight: 400;
}

.chart-up {
    color: var(--green);

    font-size: 11px;
}

.chart {
    height: 220px;

    display: flex;

    align-items: flex-end;

    gap: 12px;

    position: relative;

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

.chart::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    top: 25%;
    bottom: 25%;

    border-top:
        1px dashed rgba(255,255,255,.05);

    border-bottom:
        1px dashed rgba(255,255,255,.05);
}

.bar {
    flex: 1;

    height: var(--height);

    min-width: 10px;

    border-radius:
        5px 5px 0 0;

    background:
        linear-gradient(
            180deg,
            rgba(74,158,232,.85),
            rgba(74,158,232,.13)
        );

    border-top:
        2px solid #5bb6fa;

    position: relative;

    transition:
        height .7s cubic-bezier(.2,.8,.2,1);

    cursor: pointer;
}

.bar:hover {
    background:
        linear-gradient(
            180deg,
            rgba(61,204,142,.95),
            rgba(61,204,142,.15)
        );

    border-color:
        var(--green);
}

.bar-labels {
    display: flex;

    gap: 12px;

    margin-top: 9px;
}

.bar-labels span {
    flex: 1;

    text-align: center;

    color: var(--text3);

    font-size: 9px;
}


/* =========================================================
   STOCK HEALTH
========================================================= */

.health-list {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.health-item {
    display: grid;

    grid-template-columns: 40px 1fr auto;

    align-items: center;

    gap: 12px;
}

.health-icon {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    font-weight: 700;
}

.health-info strong {
    display: block;

    font-size: 12px;

    margin-bottom: 5px;
}

.health-info span {
    color: var(--text3);

    font-size: 10px;
}

.health-percent {
    font-family: 'Outfit';

    font-size: 16px;

    font-weight: 600;
}

.health-progress {
    grid-column: 2 / 4;

    height: 5px;

    background: rgba(255,255,255,.05);

    border-radius: 20px;

    overflow: hidden;

    margin-top: -5px;
}

.health-progress span {
    display: block;

    height: 100%;

    border-radius: inherit;
}


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

.table-card {
    margin-bottom: 18px;
}

.table-toolbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 15px 20px;

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

.search {
    position: relative;

    width: 250px;
}

.search input {
    width: 100%;

    height: 38px;

    padding:
        0 12px 0 36px;

    background: var(--bg2);

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

    border-radius: 8px;

    color: white;

    outline: none;

    font-size: 11px;
}

.search input:focus {
    border-color:
        rgba(74,158,232,.5);
}

.search-icon {
    position: absolute;

    left: 12px;

    top: 11px;

    color: var(--text3);
}

.filters {
    display: flex;

    gap: 8px;
}

.filter {
    height: 38px;

    padding: 0 12px;

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

    border-radius: 8px;

    background: var(--bg2);

    color: var(--text2);

    font-size: 11px;

    outline: none;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    min-width: 850px;
}

thead th {
    padding:
        13px 20px;

    text-align: left;

    color: var(--text3);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .8px;

    font-weight: 500;

    background:
        rgba(255,255,255,.015);
}

tbody td {
    padding:
        15px 20px;

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

    font-size: 11px;

    color: var(--text2);
}

tbody tr {
    transition: .15s;
}

tbody tr:hover {
    background:
        rgba(74,158,232,.035);
}

.product {
    display: flex;

    align-items: center;

    gap: 11px;
}

.product-icon {
    width: 36px;
    height: 36px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 10px;

    color: white;
}

.product-name {
    color: var(--text);

    font-weight: 500;

    margin-bottom: 3px;
}

.product-code {
    color: var(--text3);

    font-size: 9px;
}

.stock-number {
    color: var(--text);

    font-family: 'Outfit';

    font-size: 16px;

    font-weight: 600;
}

.stock-unit {
    color: var(--text3);

    font-size: 9px;
}

.status {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 5px 8px;

    border-radius: 6px;

    font-size: 9px;

    font-weight: 500;
}

.status-dot {
    width: 5px;
    height: 5px;

    border-radius: 50%;
}

.status-good {
    color: var(--green);

    background:
        rgba(61,204,142,.08);
}

.status-low {
    color: var(--orange);

    background:
        rgba(240,160,48,.08);
}

.status-critical {
    color: var(--red);

    background:
        rgba(232,90,90,.08);
}

.action-btn {
    width: 30px;
    height: 30px;

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

    background: transparent;

    border-radius: 7px;

    color: var(--text3);

    cursor: pointer;
}

.action-btn:hover {
    color: white;

    border-color:
        var(--border2);
}


/* =========================================================
   BOTTOM GRID
========================================================= */

.bottom-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

    margin-bottom: 60px;
}


/* =========================================================
   ALERTS
========================================================= */

.alert-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}

.alert {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    background: var(--bg2);

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

    border-radius: 10px;
}

.alert-icon {
    width: 34px;
    height: 34px;

    border-radius: 9px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;

    font-size: 11px;

    color: var(--text);

    margin-bottom: 3px;
}

.alert-content span {
    color: var(--text3);

    font-size: 9px;
}

.alert-time {
    color: var(--text3);

    font-size: 9px;
}


/* =========================================================
   WAREHOUSE
========================================================= */

.warehouse-list {
    display: flex;

    flex-direction: column;

    gap: 11px;
}

.warehouse {
    padding: 13px;

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

    background: var(--bg2);

    border-radius: 10px;
}

.warehouse-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 9px;
}

.warehouse-name {
    font-size: 11px;

    font-weight: 500;
}

.warehouse-status {
    color: var(--green);

    font-size: 9px;
}

.warehouse-meta {
    display: flex;

    justify-content: space-between;

    color: var(--text3);

    font-size: 9px;

    margin-bottom: 7px;
}

.warehouse-bar {
    height: 5px;

    background:
        rgba(255,255,255,.05);

    border-radius: 10px;

    overflow: hidden;
}

.warehouse-bar span {
    display: block;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--sky2),
            var(--green)
        );

    border-radius: inherit;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    border-top:
        1px solid var(--border);

    padding:
        22px 0;

    color: var(--text3);

    font-size: 10px;

    display: flex;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 1050px) {

    .nav-links {
        display: none;
    }

    .stats {
        grid-template-columns:
            repeat(2,1fr);
    }

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

}

@media(max-width: 700px) {

    .container {
        width:
            calc(100% - 28px);
    }

    nav {
        padding: 0 14px;
    }

    .profile span {
        display: none;
    }

    .page-header {
        flex-direction: column;

        align-items: flex-start;

        padding-top: 32px;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1;
    }

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

    .table-toolbar {
        flex-direction: column;

        align-items: stretch;
    }

    .search {
        width: 100%;
    }

    .filters {
        width: 100%;
    }

    .filter {
        flex: 1;
    }

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

}


@media(max-width:767px){
.info-logo{
    margin-left: -30px;
}
}



