:root{
    --primary:#8c52ff;
    --primary-dark:#6f36ea;
    --primary-soft:#f3e8ff;
    --secondary:#d9b3ff;
    --dark:#22152f;
    --dark-2:#2e1b3f;
    --text:#261733;
    --muted:#7d6d8d;
    --white:#ffffff;
    --border:rgba(140,82,255,.18);
    --shadow:0 20px 40px rgba(77, 34, 124, 0.15);
    --radius:22px;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at top left, rgba(217,179,255,.7), transparent 30%),
        radial-gradient(circle at bottom right, rgba(140,82,255,.35), transparent 35%),
        linear-gradient(135deg, #f8f1ff 0%, #f4e8ff 40%, #efe2ff 100%);
    min-height:100vh;
}

.login-body{
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
    min-height:100vh;
}

.login-card{
    width:100%;
    max-width:420px;
    background:rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    border:1px solid rgba(255,255,255,.4);
    border-radius:28px;
    padding:36px;
    box-shadow:var(--shadow);
}

.brand-logo{
    width:60px;
    height:60px;
    border-radius:18px;
    background:linear-gradient(135deg, var(--primary), #c98fff);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:800;
    font-size:22px;
    box-shadow:0 12px 25px rgba(140,82,255,.35);
}

.main-shell{
    display:flex;
    min-height:100vh;
}

.sidebar{
    width:280px;
    padding:24px 18px;
    background:linear-gradient(180deg, rgba(34,21,47,.96), rgba(52,30,75,.93));
    color:#fff;
    position:sticky;
    top:0;
    height:100vh;
}

.brand-box{
    display:flex;
    gap:14px;
    align-items:center;
    padding:14px;
    border-radius:22px;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.1);
}

.brand-box h1{
    font-size:20px;
    margin:0;
    font-weight:800;
}

.brand-box p{
    margin:2px 0 0;
    font-size:12px;
    color:rgba(255,255,255,.75);
}

.custom-link{
    color:rgba(255,255,255,.88);
    border-radius:16px;
    padding:12px 14px;
    transition:.2s ease;
    font-weight:600;
}

.custom-link:hover{
    background:rgba(255,255,255,.1);
    color:#fff;
}

.custom-link i{
    margin-right:8px;
}

.content-area{
    flex:1;
    padding:28px;
}

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

.page-title{
    font-weight:800;
    margin:0;
    color:var(--dark);
}

.page-subtitle{
    margin:4px 0 0;
    color:var(--muted);
}

.user-chip{
    background:rgba(255,255,255,.8);
    border:1px solid rgba(255,255,255,.4);
    border-radius:18px;
    padding:10px 16px;
    box-shadow:var(--shadow);
    font-weight:600;
}

.lux-card{
    background:rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    border:1px solid rgba(255,255,255,.6);
    border-radius:var(--radius);
    padding:22px;
    box-shadow:var(--shadow);
    height:100%;
}

.stat-card{
    background:linear-gradient(135deg, rgba(140,82,255,.12), rgba(255,255,255,.92));
}

.stat-card span{
    color:var(--muted);
    font-weight:600;
    display:block;
    margin-bottom:8px;
}

.stat-card h3{
    margin:0;
    font-size:28px;
    font-weight:800;
    color:var(--dark);
}

.custom-input{
    border-radius:16px;
    border:1px solid var(--border);
    padding:12px 14px;
    background:#fff;
}

.custom-input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 .2rem rgba(140,82,255,.15);
}

.btn-luxury{
    background:linear-gradient(135deg, var(--primary), #c17dff);
    border:none;
    border-radius:16px;
    padding:12px 16px;
    font-weight:700;
    box-shadow:0 12px 20px rgba(140,82,255,.22);
}

.btn-luxury:hover{
    background:linear-gradient(135deg, var(--primary-dark), #b06cff);
}

.table{
    --bs-table-bg: transparent;
}

.table thead th{
    color:var(--muted);
    font-size:13px;
    font-weight:700;
    border-bottom:1px solid rgba(0,0,0,.06);
}

.table tbody td{
    border-bottom:1px solid rgba(0,0,0,.05);
    vertical-align:middle;
}

.product-card{
    border-radius:22px;
    padding:18px;
    background:linear-gradient(145deg, #fff, #f8efff);
    border:1px solid rgba(140,82,255,.12);
    height:100%;
    box-shadow:0 12px 22px rgba(81, 42, 122, 0.08);
}

.product-card h6{
    font-weight:800;
    margin-bottom:4px;
    color:var(--dark);
}

.product-price{
    font-size:22px;
    font-weight:800;
    color:var(--primary-dark);
}

.search-box{
    max-width:320px;
}

.cart-items{
    max-height:320px;
    overflow:auto;
    border:1px dashed rgba(140,82,255,.3);
    border-radius:18px;
    padding:12px;
    background:#fff;
}

.cart-count{
    display:flex;
    align-items:center;
    gap:8px;
    padding:6px 10px;
    border:1px solid var(--border);
    border-radius:12px;
    background:#fff;
    color:var(--muted);
    font-size:13px;
}

.cart-count strong{
    color:var(--primary-dark);
    font-size:18px;
    line-height:1;
}

.cart-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:10px 0;
    border-bottom:1px solid rgba(0,0,0,.06);
}

.cart-row:last-child{
    border-bottom:none;
}

.qty-box{
    display:flex;
    align-items:center;
    gap:8px;
}

.qty-box button{
    width:28px;
    height:28px;
    border:none;
    border-radius:8px;
    background:var(--primary-soft);
    color:var(--primary-dark);
    font-weight:800;
}

.summary-line{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:8px 0;
}

.total-line{
    font-size:20px;
}

.alert{
    border:none;
    border-radius:18px;
}

@media (max-width: 992px){
    .main-shell{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

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

.stock-table-search{
    max-width:260px;
}

.selected-product-box{
    border:1px dashed rgba(140,82,255,.28);
    border-radius:18px;
    background:#fff;
    padding:14px;
    min-height:84px;
}

.selected-product-card h6{
    margin:0 0 8px;
    font-weight:800;
    color:var(--dark);
}

.selected-product-meta{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    color:var(--muted);
    font-size:14px;
}
