:root {
    --ink: #17243a;
    --muted: #7d899b;
    --blue: #3568f5;
    --bg: #f5f7fb;
    --line: #e8edf4;
    --sidebar: #fff
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px
}

.app-shell {
    min-height: 100vh
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    background: var(--sidebar);
    border-right: 1px solid var(--line);
    padding: 25px 16px;
    display: flex;
    flex-direction: column;
    z-index: 10
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
    padding: 0 8px 34px
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 30px;
}

.brand-mark img {
     width:100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand small {
    display: block;
    font-size: 8px;
    letter-spacing: 1.6px;
    color: #8a96a9;
    font-weight: 800;
    margin-top: 1px
}

.nav-caption {
    font-size: 10px;
    letter-spacing: 1.4px;
    color: #a0aabb;
    font-weight: 800;
    padding: 0 12px 11px
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    border-radius: 10px;
    color: #68758a;
    text-decoration: none;
    font-weight: 600;
    margin: 2px 0;
    transition: .15s
}

.side-link i {
    font-size: 17px;
    width: 20px
}

.side-link:hover {
    background: #f3f6ff;
    color: var(--blue)
}

.side-link.active {
    background: #edf2ff;
    color: var(--blue);
    font-weight: 750
}

.side-arrow {
    margin-left: auto;
    font-size: 20px
}

.sidebar-bottom {
    margin-top:0px;
}

.support-card {
    background: #f5f7fc;
    border: 1px solid #edf0f7;
    border-radius: 13px;
    padding: 15px;
    margin: 10px 2px 15px
}

.support-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: #e4ebff;
    color: var(--blue);
    border-radius: 9px;
    margin-bottom: 10px
}

.support-card strong {
    font-size: 12px
}

.support-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 5px 0 0
}

.logout-link {
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding-top: 18px
}

.main-area {
    margin-left: 252px;
    min-height: 100vh
}

.topbar {
    height: 83px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
    position: sticky;
    top: 0;
    z-index: 5
}

.top-eyebrow {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    color: #9aa5b5
}

.top-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-top: 2px
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 10px
}

.profile-chip strong,
.profile-chip small {
    display: block
}

.profile-chip strong {
    font-size: 12px
}

.profile-chip small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px
}

.avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #e8eeff;
    color: var(--blue);
    font-weight: 800
}

.icon-btn {
    position: relative;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    color: #6f7c90;
    font-size: 17px
}

.notification-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97373;
    right: 8px;
    top: 7px;
    border: 1px solid white
}

.page-content {
    padding: 30px 35px 40px;
    max-width: 1600px;
    margin: auto
}

.welcome-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px
}

.welcome-row h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.8px;
    margin: 0 0 5px
}

.muted {
    color: var(--muted)
}

.small-muted {
    font-size: 12px;
    color: var(--muted);
}

.btn-primary {
    background:#c59f14;
    border-color:  #c59f14;

}

.btn-primary:hover {
    background: #2455de;
    border-color: #2455de
}

.btn-soft {
    background: #edf2ff;
    color: var(--blue);
    border: 1px solid #e0e8ff;
    font-weight: 700
}

.btn-soft:hover {
    background: #e2eaff;
    color: #2455de
}

.stat-card,
.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 3px 14px #1a2b4a04
}

.stat-card {
    padding: 20px;
    height: 100%;
    min-height: 135px
}

.stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #758197;
    font-size: 12px;
    font-weight: 650
}

.stat-icon {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px
}

.tone-blue {
    background: #eaf0ff;
    color: #3568f5
}

.tone-orange {
    background: #fff1df;
    color: #e49a32
}

.tone-green {
    background: #e2f8ef;
    color: #15996b
}

.tone-purple {
    background: #f0eaff;
    color: #8a5be8
}

.stat-number {
    font-size: 27px;
    font-weight: 850;
    letter-spacing: -1px;
    margin-top: 13px;
    line-height: 1.1
}

.stat-foot {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px
}

.panel {
    padding: 22px
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px
}

.panel-heading h2 {
    font-size: 15px;
    font-weight: 800;
    margin: 0
}

.panel-heading p {
    font-size: 11px;
    color: var(--muted);
    margin: 5px 0 0
}

.table {
    --bs-table-bg: transparent;
    vertical-align: middle
}

.table thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #9aa5b5;
    font-weight: 800;
    border-bottom: 1px solid var(--line);
    padding: 12px 10px;
    white-space: nowrap
}

.table tbody td {
    font-size: 12px;
    color: #526078;
    padding: 14px 10px;
    border-color: #f0f2f7
}

.item-name {
    font-weight: 750;
    color: var(--ink);
    font-size: 12px
}

.item-code {
    font-size: 10px;
    color: #9aa5b5;
    margin-top: 4px
}

.item-symbol {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f0f4ff;
    color: #5577d8;
    font-size: 16px
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 750
}

.status-low {
    background: #fff0ed;
    color: #dc5c4e
}

.status-good {
    background: #e6f8ef;
    color: #1b9869
}

.status-neutral {
    background: #eef2f8;
    color: #6c7890
}

.progress {
    height: 5px;
    background: #edf0f5;
    border-radius: 5px
}

.progress-bar {
    background: var(--blue);
    border-radius: 5px
}

.alert-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 0;
    border-bottom: 1px solid #f0f2f7
}

.alert-row:last-child {
    border-bottom: 0;
    padding-bottom: 0
}

.alert-mark {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff0ed;
    color: #e15c4c
}

.alert-title {
    font-size: 12px;
    font-weight: 750
}

.alert-sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}

.alert-qty {
    margin-left: auto;
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    color: #dc5c4e
}

.activity-dot {
    width: 9px;
    height: 9px;
    background: #3568f5;
    border: 3px solid #e9efff;
    border-radius: 50%;
    box-sizing: content-box
}

.activity-row {
    display: flex;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f2f7
}

.activity-row:last-child {
    border: 0
}

.activity-content {
    flex: 1
}

.activity-title {
    font-size: 12px;
    font-weight: 700
}

.activity-sub {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px
}

.empty-state {
    padding: 30px;
    text-align: center;
    color: var(--muted)
}

.form-control,
.form-select {
    border-color: #e3e8f0;
    border-radius: 9px;
    font-size: 13px;
    padding: 10px 12px
}

.form-control:focus,
.form-select:focus {
    border-color: #9bb3ff;
    box-shadow: 0 0 0 .2rem #3568f51c
}

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff
}

.login-art {
        /* Login background image */
    background-image:url(img/princewallpaper.png);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 55px;
   
    color: white;
    overflow: hidden;
    position: relative

}

.login-art:after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px solid #ffffff2b;
    border-radius: 50%;
    right: -170px;
    top: 22%;
    box-shadow: 0 0 0 55px #ffffff0a, 0 0 0 110px #ffffff08
}

.login-art h1 {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -1.5px;
    max-width: 520px
}

.login-art p {
    color: #d9e3ff;
    max-width: 390px;
    line-height: 1.8
}

.login-visual {
    position: relative;
    z-index: 1;
    background: #ffffff17;
    border: 1px solid #ffffff30;
    border-radius: 20px;
    padding: 22px;
    max-width: 440px;
    backdrop-filter: blur(8px);
    box-shadow: 0 25px 50px #102b8233
}

.visual-bar {
    height: 7px;
    background: #ffffff35;
    border-radius: 8px;
    margin: 12px 0
}

.visual-bar span {
    display: block;
    height: 100%;
    border-radius: 8px;
    background: #fff
}

.login-main {
    display: grid;
    place-items: center;
    padding: 35px
}

.login-form-wrap {
    width: 100%;
    max-width: 390px
}

.login-form-wrap h2 {
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -.8px;
    margin: 25px 0 8px
}

.login-form-wrap .form-label {
    font-size: 12px;
    font-weight: 750
}

.login-form-wrap .form-control {
    padding: 13px
}

.login-footer {
    font-size: 11px;
    color: #9aa5b5;
    margin-top: 28px
}

.alert {
    font-size: 13px
}

.table-responsive {
    border-radius: 10px
}

.section-label {
    font-size: 10px;
    letter-spacing: 1px;
    color: #9aa5b5;
    font-weight: 800
}

@media(max-width:991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 0 0 0 100vw #17243a55
    }

    .main-area {
        margin-left: 0
    }

    .topbar {
        padding: 0 20px
    }

    .page-content {
        padding: 24px 20px
    }

    .login-art {
        padding: 35px
    }

    .login-page {
        grid-template-columns: 1fr
    }

    .login-art {
        min-height: 340px
    }

    .login-visual {
        display: none
    }
}

@media(max-width:575px) {
    .topbar {
        height: 72px
    }

    .page-content {
        padding: 20px 14px
    }

    .welcome-row {
        align-items: flex-start;
        flex-direction: column
    }

    .panel {
        padding: 16px
    }

    .login-art {
        min-height: 300px;
        padding: 25px
    }

    .login-main {
        padding: 28px 22px
    }
    .topbar {
    position: relative;
    z-index: 1050;
}

.topbar .dropdown {
    position: relative;
}

.topbar .dropdown-menu {
    z-index: 1060 !important;
    min-width: 350px;
    max-height: 450px;
    overflow-y: auto;
}

.topbar .icon-btn {
    cursor: pointer;
    position: relative;
    pointer-events: auto;
}

.topbar .dropdown-item {
    white-space: normal;
}
}