/* =========================================================
   GLOBAL
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#eef2f7;
    overflow-x:hidden;
    color:#111827;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-thumb{
    background:#c8d1e2;
    border-radius:20px;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.main-container{
    display:flex;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{
    width:280px;
    height:100vh;
    background:rgb(1,28,100);
    padding:25px 20px;
    position:fixed;
    left:0;
    top:0;
    overflow-y:auto;
    z-index:999;
}

.sidebar-logo{
    width:145px;
    background:white;
    padding:10px;
    border-radius:18px;
    margin-bottom:18px;
}

.logo-area{
    text-align:center;
    margin-bottom:35px;
    padding-bottom:25px;
    border-bottom:1px solid rgba(255,255,255,0.15);
}

.logo-area h2{
    color:white;
    font-size:34px;
    margin-bottom:6px;
}

.logo-area p{
    color:rgb(254,89,3);
    font-size:15px;
    font-weight:600;
}

.menu{
    list-style:none;
}

.menu li{
    margin-bottom:14px;
}

.menu li a{
    display:flex;
    align-items:center;
    gap:12px;
    background:rgba(255,255,255,0.07);
    color:white;
    padding:15px 16px;
    border-radius:16px;
    transition:0.3s;
    font-size:15px;
    font-weight:500;
}

.menu li a:hover{
    background:rgba(255,255,255,0.15);
    transform:translateX(4px);
}

.active a{
    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7b30
    ) !important;

    box-shadow:0 8px 18px rgba(254,89,3,0.25);
}

.logout-btn{
    margin-top:35px;
}

.logout-btn a{
    background:#ffeded !important;
    color:#d60000 !important;
    font-weight:700;
}

.logout-btn a:hover{
    background:#ff3d3d !important;
    color:white !important;
}


/* =========================================================
   CONTENT AREA
========================================================= */

.content-area{
    margin-left:280px;
    width:calc(100% - 280px);
    padding:25px;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar{
    background:white;
    padding:20px 24px;
    border-radius:24px;
    margin-bottom:25px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:0 6px 20px rgba(0,0,0,0.05);
}

.topbar h2{
    color:rgb(1,28,100);
    font-size:28px;
}

.cashier-right{
    display:flex;
    gap:15px;
    align-items:center;
}

.cashier-right input{
    padding:13px 16px;
    border:none;
    background:#f4f7fb;
    border-radius:14px;
    width:250px;
    outline:none;
}

.cashier-name{
    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    padding:13px 20px;
    border-radius:14px;
    font-weight:600;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.page-header h2{
    color:rgb(1,28,100);
    font-size:34px;
    margin-bottom:5px;
}

.page-header p{
    color:#6b7280;
    font-size:15px;
}


/* =========================================================
   GO BILL BUTTON
========================================================= */

.go-bill-btn{
    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    padding:15px 24px;
    border-radius:16px;
    font-weight:600;
    transition:0.3s;
}

.go-bill-btn:hover{
    transform:translateY(-3px);
}


/* =========================================================
   CATEGORY GRID
========================================================= */

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:28px;
}

.category-card{
    background:#f7f7f7;
    border-radius:26px;
    padding:28px;
    text-align:center;
    cursor:pointer;
    transition:0.3s;
    border:2px solid transparent;
    min-height:150px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}

.category-card:hover{
    transform:translateY(-4px);
}

.active-category{
    border-color:rgb(254,89,3);
}

.category-card img{
    width:75px;
    height:75px;
    object-fit:contain;
    margin-bottom:15px;
}

.category-card h3{
    color:rgb(1,28,100);
    font-size:20px;
    font-weight:700;
}


/* =========================================================
   INVENTORY LAYOUT
========================================================= */

.inventory-layout{
    display:grid;

    grid-template-columns:
    230px
    320px
    230px
    1fr;

    gap:18px;
    align-items:start;
}


/* =========================================================
   BOXES
========================================================= */

.inventory-box,
.details-panel,
.bill-section,
.table-section,
.analytics-card,
.card{
    background:#f7f7f7;
    border-radius:24px;
    padding:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.inventory-box,
.details-panel{
    height:700px;
    overflow-y:auto;
}

.box-title{
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #e5e7eb;
}

.box-title h3{
    color:rgb(1,28,100);
    font-size:19px;
}


/* =========================================================
   COMPANY CARD
========================================================= */

.company-card{
    background:#eceef3;
    padding:16px;
    border-radius:16px;
    margin-bottom:14px;
    cursor:pointer;
    transition:0.3s;
    font-weight:600;
}

.company-card:hover{
    transform:translateX(4px);
}

.active-company{
    background:rgb(1,28,100);
    color:white;
}


/* =========================================================
   PRODUCT ITEM
========================================================= */

.product-item{
    background:#eceef3;
    padding:16px;
    border-radius:18px;
    margin-bottom:16px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    cursor:pointer;
    transition:0.3s;
    border:2px solid transparent;
}

.product-item:hover{
    transform:translateY(-3px);
}

.active-product{
    background:white;
    border-color:rgb(254,89,3);
}

.product-item h4{
    margin-bottom:5px;
    color:rgb(1,28,100);
    font-size:18px;
}

.product-item p{
    font-size:14px;
    color:#6b7280;
}

.product-item span{
    background:rgb(254,89,3);
    color:white;
    padding:9px 14px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
}


/* =========================================================
   COLOR CARD
========================================================= */

.color-card{
    background:#eceef3;
    padding:14px 16px;
    border-radius:16px;
    margin-bottom:14px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    cursor:pointer;
    transition:0.3s;
}

.color-card:hover{
    transform:translateX(3px);
}

.active-color{
    background:rgb(1,28,100);
    color:white;
}

.color-preview{
    width:22px;
    height:22px;
    border-radius:50%;
    margin-right:10px;
}

.black{
    background:black;
}

.gray{
    background:gray;
}

.blue{
    background:blue;
}


/* =========================================================
   DETAILS PANEL
========================================================= */

.details-image{
    text-align:center;
    margin-bottom:25px;
}

.details-image img{
    width:230px;
    height:230px;
    object-fit:contain;
}

.details-content h2{
    color:rgb(1,28,100);
    font-size:34px;
    margin-bottom:25px;
}

.detail-row{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:15px 0;
    border-bottom:1px solid #e5e7eb;
}

.detail-row span{
    color:#6b7280;
}

.detail-row strong{
    color:#111827;
}

.instock{
    color:green !important;
}


/* =========================================================
   PRODUCT SELECT
========================================================= */

.select-product-box{
    margin-top:28px;
    background:#eef3ff;
    padding:18px;
    border-radius:16px;
}

.select-product-box label{
    display:flex;
    align-items:center;
    gap:12px;
    color:rgb(1,28,100);
    font-weight:600;
}

.select-product-box input{
    width:18px;
    height:18px;
}

.add-cart-btn{
    width:100%;
    margin-top:25px;
    border:none;

    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    padding:17px;
    border-radius:16px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.add-cart-btn:hover{
    transform:translateY(-2px);
}


/* =========================================================
   BILLING
========================================================= */

.billing-layout{
    display:grid;
    grid-template-columns:1fr 420px;
    gap:25px;
}

.billing-product-card{
    display:flex;
    gap:15px;
    align-items:center;

    background:#f8f9ff;
    padding:16px;
    border-radius:18px;
    margin-bottom:18px;
}

.billing-product-card img{
    width:75px;
}

.cart-item{
    display:flex;
    justify-content:space-between;
    align-items:center;

    background:#f8f9ff;
    padding:15px;
    border-radius:16px;
    margin-bottom:15px;
}

.customer-box input,
.payment-box input,
.payment-box select{
    width:100%;
    padding:15px;
    border:none;
    background:#f4f7fb;
    border-radius:14px;
    margin-bottom:15px;
    outline:none;
}

.complete-btn{
    width:100%;
    border:none;

    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    padding:16px;
    border-radius:16px;
    cursor:pointer;
    font-weight:600;
}


/* =========================================================
   DASHBOARD CARDS
========================================================= */

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:25px;
}

.card h3{
    color:#6b7280;
    margin-bottom:10px;
}

.card h2{
    color:rgb(1,28,100);
    font-size:34px;
}


/* =========================================================
   TABLE
========================================================= */

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:rgb(1,28,100);
    color:white;
}

table th,
table td{
    padding:16px;
    text-align:left;
    border-bottom:1px solid #e5e7eb;
}

.active-status{
    background:#dcffe8;
    color:green;
    padding:8px 14px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-body{
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    background:#eef2f7;
}

.login-box{
    width:420px;
    background:white;
    padding:45px;
    border-radius:28px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.login-logo{
    width:170px;
    margin-bottom:25px;
}

.login-box input{
    width:100%;
    padding:16px;
    margin-bottom:16px;
    border:none;
    background:#f4f7fb;
    border-radius:14px;
    outline:none;
}

.login-box button{
    width:100%;
    border:none;

    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    padding:16px;
    border-radius:16px;
    cursor:pointer;
    font-weight:600;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1500px){

    .inventory-layout{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:1200px){

    .billing-layout,
    .dashboard-cards{
        grid-template-columns:1fr;
    }

}

@media(max-width:950px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .content-area{
        margin-left:0;
        width:100%;
    }

    .main-container{
        flex-direction:column;
    }

    .inventory-layout{
        grid-template-columns:1fr;
    }

    .category-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:700px){

    .topbar{
        flex-direction:column;
        gap:16px;
    }

    .cashier-right{
        width:100%;
        flex-direction:column;
    }

    .cashier-right input{
        width:100%;
    }

    .page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:16px;
    }

    .category-grid{
        grid-template-columns:1fr;
    }

    .content-area{
        padding:18px;
    }

}