@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap');

:root {
    --pink: #e7a6bb;
    --pink-light: #f9e8ee;
    --ink: #201b22;
    --muted: #847d88;
    --surface: #ffffff;
    --background: #f8f6f8;
    --border: #eee9ee;
    --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Tajawal', Tahoma, sans-serif;
    background: var(--background);
    color: var(--ink);
}

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

button, a { -webkit-tap-highlight-color: transparent; }

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

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 255px;
    background: #211c24;
    color: #fff;
    padding: 32px 18px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 42px;
}

.brand-mark, .avatar {
    display: grid;
    place-items: center;
    background: var(--pink);
    color: #17151a;
    font-weight: 800;
    border-radius: 16px;
}

.brand-mark { width: 48px; height: 48px; font-size: 18px; }

.brand strong { display: block; font-size: 17px; letter-spacing: 1px; }
.brand small { display: block; color: #b8aebc; font-size: 9px; letter-spacing: 1px; margin-top: 5px; }

.sidebar-label {
    color: #a89faa;
    padding: 0 16px 14px;
    font-size: 12px;
}

.side-nav { display: grid; gap: 6px; }

.side-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    color: #cfc5d1;
    border-radius: 12px;
    font-size: 14px;
    transition: .2s;
}

.side-nav a span { font-size: 19px; width: 22px; text-align: center; }

.side-nav a:hover, .side-nav a.active {
    background: #3e303e;
    color: #fff;
}

.side-nav a.active { border-right: 3px solid var(--pink); }

.sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    color: #c4b8c5;
    padding: 15px 8px 0;
}

.status-dot {
    display: inline-block;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #83d6ae;
    margin-left: 7px;
}

.workspace { margin-right: 255px; min-width: 0; }

.topbar {
    min-height: 106px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #b68da3;
}

.topbar h1 { font-size: 25px; margin: 8px 0 0; }

.top-actions { display: flex; align-items: center; gap: 15px; }

.preview-badge, .period {
    background: var(--pink-light);
    border-radius: 30px;
    padding: 10px 15px;
    font-size: 12px;
    color: #946478;
}

.avatar { width: 43px; height: 43px; border-radius: 50%; }

.content { max-width: 1600px; margin: auto; padding: 32px 5% 22px; }

.welcome-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 255px;
    border-radius: 26px;
    padding: 40px 5%;
    background: linear-gradient(115deg, #342330 0%, #1e1a21 65%, #3f2735 100%);
    color: white;
    overflow: hidden;
}

.welcome-copy { position: relative; z-index: 1; max-width: 650px; }

.welcome-tag { color: #e5a9c0; font-size: 11px; letter-spacing: 2px; }

.welcome-card h2 { font-size: clamp(25px, 3vw, 37px); margin: 16px 0; }

.welcome-card p { line-height: 1.9; color: #ded4df; font-size: 14px; }

.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }

.button {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.button-light { background: var(--pink); color: var(--ink); }
.button-outline { border: 1px solid #8d7889; color: white; }

.welcome-symbol {
    font-size: clamp(90px, 13vw, 185px);
    font-weight: 800;
    opacity: .1;
    letter-spacing: -12px;
}

.welcome-symbol span { display: block; font-size: 28px; text-align: center; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 36px 0 18px;
}

.section-heading h2, .panel h2 { margin: 7px 0 0; font-size: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card, .panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-card { padding: 25px; min-width: 0; }

.stat-top { display: flex; justify-content: space-between; gap: 10px; color: #77717b; font-size: 13px; }

.stat-icon {
    background: var(--pink-light);
    color: #b97693;
    border-radius: 11px;
    display: grid;
    place-items: center;
    height: 36px;
    width: 36px;
    flex-shrink: 0;
}

.stat-card strong {
    display: block;
    font-size: clamp(28px, 3vw, 37px);
    margin-top: 25px;
    white-space: nowrap;
}

.stat-card strong small { font-size: 13px; color: #a29aa3; }

.stat-card p { color: var(--muted); font-size: 12px; margin: 10px 0 0; }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    margin-top: 25px;
}

.panel { padding: 26px; min-width: 0; }

.panel-header { margin-bottom: 22px; }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.quick-actions a {
    border: 1px solid var(--border);
    background: #fcfafb;
    border-radius: 15px;
    padding: 19px;
    transition: transform .2s, border-color .2s;
}

.quick-actions a:hover { transform: translateY(-3px); border-color: var(--pink); }

.quick-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--pink-light);
    border-radius: 9px;
    color: #a56381;
    font-size: 22px;
    margin-bottom: 16px;
}

.quick-actions strong { display: block; font-size: 14px; }
.quick-actions small { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; }

.system-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.system-item:last-child { border-bottom: 0; }

.system-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    background: #e9f7ef;
    color: #459a72;
    border-radius: 50%;
    flex-shrink: 0;
    font-weight: 800;
}

.system-icon.pending { background: #fff4e5; color: #bd8c46; }

.system-item strong { display: block; font-size: 13px; }
.system-item small { color: var(--muted); font-size: 11px; display: block; margin-top: 5px; }

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #9b939d;
    font-size: 11px;
    padding-top: 32px;
}

.mobile-nav { display: none; }

@media (max-width: 1100px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .workspace { margin-right: 0; }
    .topbar { min-height: 82px; padding: 18px 5%; }
    .topbar h1 { font-size: 21px; }
    .preview-badge { display: none; }
    .content { padding: 18px 4% 100px; }
    .welcome-card { min-height: 240px; padding: 27px 7%; }
    .welcome-symbol { display: none; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 17px 13px; border-radius: 15px; }
    .stat-top { font-size: 12px; }
    .stat-card strong { font-size: 27px; margin-top: 17px; }
    .stat-card p { font-size: 10px; line-height: 1.5; }
    .section-heading h2 { font-size: 18px; }
    .panel { padding: 18px; }
    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        z-index: 20;
        background: #fff;
        border-top: 1px solid var(--border);
        padding: 9px 5px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -8px 30px #201b220d;
    }
    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        font-size: 10px;
        color: #8c8390;
    }
    .mobile-nav a span { font-size: 23px; }
    .mobile-nav a.active { color: #a85b80; font-weight: 800; }
}

@media (max-width: 390px) {
    .topbar .eyebrow { letter-spacing: 1px; }
    .welcome-card h2 { font-size: 25px; }
    .welcome-card p { font-size: 12px; }
    .quick-actions { gap: 9px; }
    .quick-actions a { padding: 13px; }
    .stat-card strong { font-size: 23px; }
    .period { font-size: 10px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* NC-BMS PRODUCT WORKSPACE V1 */

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

.nc-page-heading h2 {
    font-size: clamp(25px, 3vw, 34px);
    margin: 8px 0;
}

.nc-page-heading p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.nc-preview-label {
    background: var(--pink-light);
    padding: 11px 16px;
    border-radius: 999px;
    color: #845068;
    font-size: 12px;
    white-space: nowrap;
}

.nc-products-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 20px;
    align-items: start;
}

.nc-field {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}

.nc-field input,
.nc-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #e7dfe5;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.nc-field input:focus,
.nc-field select:focus {
    border-color: #c886a4;
    box-shadow: 0 0 0 3px #e7a6bb33;
}

.nc-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: #251b27;
    color: #fff;
    font: inherit;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.nc-primary-button:hover {
    background: #493046;
}

.nc-product-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.nc-product-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 15px;
    background: #fcfafb;
    border: 1px solid var(--border);
    border-radius: 15px;
}

.nc-product-avatar {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: var(--pink-light);
    color: #ac6384;
    border-radius: 13px;
    font-size: 25px;
}

.nc-product-info {
    flex: 1 1 140px;
    min-width: 0;
}

.nc-product-info strong,
.nc-product-info small {
    display: block;
    overflow-wrap: anywhere;
}

.nc-product-info small {
    margin-top: 6px;
    color: var(--muted);
}

.nc-product-meta {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.nc-product-meta code {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.nc-status {
    padding: 5px 10px;
    border-radius: 20px;
    background: var(--pink-light);
    font-size: 11px;
    color: #845068;
}

.nc-empty-state,
.nc-coming-soon {
    text-align: center;
    padding: 45px 20px;
}

.nc-empty-icon {
    font-size: 45px;
    color: #bc7d9b;
}

.nc-empty-state h3,
.nc-coming-soon h2 {
    margin-bottom: 8px;
}

.nc-empty-state p,
.nc-coming-soon p,
.nc-demo-note {
    color: var(--muted);
    line-height: 1.9;
    font-size: 13px;
}

.nc-demo-note {
    margin: 22px 0 0;
}

.nc-form-message {
    min-height: 22px;
    font-size: 12px;
    margin: 12px 0 0;
}

.nc-form-message[data-state="success"] {
    color: #278358;
}

.nc-form-message[data-state="error"] {
    color: #b83e54;
}

.nc-back-button {
    width: auto;
    padding: 0 24px;
    margin-top: 15px;
}

@media (max-width: 1050px) {
    .nc-products-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nc-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .nc-products-layout {
        gap: 14px;
    }

    .nc-product-card {
        padding: 13px;
    }

    .nc-product-meta {
        width: 100%;
        padding-right: 60px;
    }

    .nc-page-heading p {
        font-size: 13px;
    }
}