*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Poppins,sans-serif;
    background:#f4f7fb;
}

.main-container{
    display:flex;
}

/* SIDEBAR */

.sidebar{
    width:280px;
    height:100vh;
    background:rgb(1,28,100);
    position:fixed;
    left:0;
    top:0;
    overflow-y:auto;
    padding:25px;
}

.sidebar-logo{
    width:150px;
    background:white;
    padding:10px;
    border-radius:14px;
    margin-bottom:20px;
}

.logo-area{
    text-align:center;
    margin-bottom:40px;
}

.logo-area h2{
    color:white;
    margin-top:10px;
}

.logo-area p{
    color:rgb(254,89,3);
    margin-top:5px;
}

.menu{
    list-style:none;
}

.menu li{
    margin-bottom:15px;
}

.menu li a{
    display:block;
    background:rgba(255,255,255,0.08);
    color:white;
    text-decoration:none;
    padding:15px;
    border-radius:14px;
    transition:0.3s;
}

.menu li a:hover,
.menu li.active a{
    background:rgb(254,89,3);
}

.logout-btn a{
    background:#ffe6e6 !important;
    color:#d40000 !important;
    font-weight:600;
}

/* CONTENT */

.content-area{
    margin-left:280px;
    width:calc(100% - 280px);
    padding:30px;
}

/* TOPBAR */

.topbar{
    background:white;
    padding:22px;
    border-radius:20px;
    margin-bottom:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.cashier-name{
    background:rgb(254,89,3);
    color:white;
    padding:12px 18px;
    border-radius:12px;
    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);
    margin-bottom:5px;
}

.page-header p{
    color:#666;
}

/* BUTTONS */

.primary-btn,
.submit-btn,
.filter-btn{
    border:none;
    background:linear-gradient(
    135deg,
    rgb(254,89,3),
    #ff7a2f
    );

    color:white;
    padding:14px 22px;
    border-radius:12px;
    cursor:pointer;
    text-decoration:none;
    font-weight:600;
}

.edit-btn{
    border:none;
    background:#dce8ff;
    color:rgb(1,28,100);
    padding:9px 14px;
    border-radius:10px;
    cursor:pointer;
}

.delete-btn{
    border:none;
    background:#ffe2e2;
    color:#d40000;
    padding:9px 14px;
    border-radius:10px;
    cursor:pointer;
}

/* CARDS */

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:25px;
}

.card{
    background:white;
    padding:30px;
    border-radius:22px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    border-left:6px solid rgb(254,89,3);
}

.card h3{
    color:#666;
    margin-bottom:10px;
}

.card h2{
    color:rgb(1,28,100);
    font-size:34px;
}

/* TABLE */

.table-section,
.analytics-card,
.form-container{
    background:white;
    padding:25px;
    border-radius:22px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

table{
    width:100%;
    border-collapse:collapse;
}

table thead{
    background:rgb(1,28,100);
    color:white;
}

table th,
table td{
    padding:16px;
    text-align:left;
}

table tbody tr{
    border-bottom:1px solid #eee;
}

table tbody tr:hover{
    background:#f8f9ff;
}

.table-img{
    width:60px;
    height:60px;
    object-fit:cover;
    border-radius:12px;
    background:#f4f7fb;
    padding:5px;
}

.active-status{
    background:#d4ffe2;
    color:green;
    padding:8px 14px;
    border-radius:30px;
    font-size:13px;
}

/* FILTER */

.filter-box{
    background:white;
    padding:20px;
    border-radius:20px;
    margin-bottom:25px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.filter-box select,
.filter-box input{
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
}

/* FORM */

.form-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;
}

.form-group{
    display:flex;
    flex-direction:column;
}

.form-group label{
    margin-bottom:10px;
    color:rgb(1,28,100);
    font-weight:600;
}

.form-group input,
.form-group select{
    padding:15px;
    border:1px solid #ddd;
    border-radius:12px;
    background:#f8f9ff;
}

/* CATEGORY */

.category-management-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.manage-category-card{
    background:white;
    padding:30px;
    border-radius:22px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.category-icon{
    font-size:45px;
    margin-bottom:20px;
}

.category-stats{
    background:#f4f7fb;
    padding:12px;
    border-radius:12px;
    margin:20px 0;
    font-weight:600;
}

.category-actions{
    display:flex;
    gap:10px;
}

/* EMPLOYEE */

.employee-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.employee-card{
    background:white;
    padding:30px;
    border-radius:22px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.employee-card img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:20px;
}

.employee-card h3{
    color:rgb(1,28,100);
    margin-bottom:8px;
}

.employee-card p{
    color:#666;
}

.employee-stats{
    margin:20px 0;
    background:#f4f7fb;
    padding:14px;
    border-radius:12px;
    font-weight:600;
}

/* ANALYTICS */

.analytics-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

.large-card{
    margin-top:25px;
}

/* LOGIN */

.login-body{
    background:#f4f7fb;
}

.login-container{
    display:flex;
    height:100vh;
}

.login-left{
    width:55%;
    background:
    linear-gradient(
    rgba(1,28,100,0.85),
    rgba(1,28,100,0.9)
    ),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c');

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;
}

.login-content{
    text-align:center;
    color:white;
}

.login-logo{
    width:180px;
    background:white;
    padding:15px;
    border-radius:20px;
    margin-bottom:30px;
}

.login-content h1{
    font-size:60px;
    margin-bottom:15px;
}

.login-right{
    width:45%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-box{
    width:420px;
    background:white;
    padding:45px;
    border-radius:28px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.login-box h2{
    color:rgb(1,28,100);
    margin-bottom:10px;
}

.login-box p{
    color:#666;
    margin-bottom:30px;
}

.input-group{
    margin-bottom:22px;
}

.input-group label{
    display:block;
    margin-bottom:10px;
    font-weight:600;
    color:rgb(1,28,100);
}

.input-group input{
    width:100%;
    padding:16px;
    border:1px solid #ddd;
    border-radius:12px;
}

.login-btn{
    width:100%;
    border:none;
    background:linear-gradient(
    135deg,
    rgb(254,89,3),
    #ff7a2f
    );

    color:white;
    padding:16px;
    border-radius:14px;
    font-size:16px;
    cursor:pointer;
}

.dummy-note{
    margin-top:25px;
    background:#fff5ef;
    padding:18px;
    border-radius:14px;
    color:#ff5b00;
}

/* RESPONSIVE */

@media(max-width:1200px){

    .dashboard-cards,
    .employee-grid,
    .category-management-grid,
    .analytics-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:900px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .content-area{
        margin-left:0;
        width:100%;
    }

    .main-container{
        flex-direction:column;
    }

    .dashboard-cards,
    .employee-grid,
    .category-management-grid,
    .analytics-grid,
    .form-grid,
    .filter-box{
        grid-template-columns:1fr;
    }

    .login-left{
        display:none;
    }

    .login-right{
        width:100%;
    }

}

/* INVENTORY PAGE */

.inventory-search-bar{
    background:white;
    padding:20px;
    border-radius:22px;
    margin-bottom:25px;
    display:grid;
    grid-template-columns:2fr 1fr 180px;
    gap:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.inventory-search-bar input,
.inventory-search-bar select{
    padding:15px;
    border:1px solid #ddd;
    border-radius:14px;
    background:#f8f9ff;
    outline:none;
}

.header-actions{
    display:flex;
    gap:15px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:30px;
}

.category-card{
    background:white;
    padding:25px;
    border-radius:24px;
    text-align:center;
    cursor:pointer;
    transition:0.3s;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    border:2px solid transparent;
}

.category-card:hover,
.active-category{
    transform:translateY(-5px);
    border-color:rgb(254,89,3);
}

.category-img{
    width:90px;
    height:90px;
    margin:auto;
    background:#f4f7fb;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;
}

.category-img img{
    width:60px;
}

.category-card h3{
    color:rgb(1,28,100);
    margin-bottom:8px;
}

.category-card p{
    color:#777;
}

.inventory-layout{
    display:grid;
    grid-template-columns:260px 350px 260px 1fr;
    gap:20px;
}

.inventory-box,
.details-panel{
    background:white;
    border-radius:24px;
    padding:22px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    height:750px;
    overflow-y:auto;
}

.box-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
}

.box-title h3{
    color:rgb(1,28,100);
}

.box-title span{
    color:#777;
    font-size:14px;
}

.company-card{
    background:#f8f9ff;
    padding:18px;
    border-radius:18px;
    margin-bottom:15px;
    cursor:pointer;
    transition:0.3s;
    border:2px solid transparent;
}

.company-card:hover,
.active-company{
    background:rgb(1,28,100);
    color:white;
    border-color:rgb(254,89,3);
}

.company-card p{
    font-size:13px;
    margin-top:5px;
}

.product-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f8f9ff;
    padding:16px;
    border-radius:18px;
    margin-bottom:15px;
    transition:0.3s;
    border:2px solid transparent;
    cursor:pointer;
}

.product-item:hover,
.active-product{
    border-color:rgb(254,89,3);
}

.product-left{
    display:flex;
    align-items:center;
    gap:15px;
}

.product-left img{
    width:55px;
    background:white;
    padding:8px;
    border-radius:12px;
}

.product-item h4{
    color:rgb(1,28,100);
    margin-bottom:5px;
}

.product-item p{
    font-size:13px;
    color:#777;
}

.product-item span{
    background:rgb(254,89,3);
    color:white;
    padding:8px 12px;
    border-radius:30px;
    font-size:12px;
}

.color-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#f8f9ff;
    padding:16px;
    border-radius:16px;
    margin-bottom:15px;
    cursor:pointer;
    transition:0.3s;
}

.color-card:hover,
.active-color{
    background:rgb(1,28,100);
    color:white;
}

.color-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.color-preview{
    width:20px;
    height:20px;
    border-radius:50%;
}

.black{
    background:black;
}

.gray{
    background:gray;
}

.blue{
    background:blue;
}

.details-top{
    display:flex;
    justify-content:flex-end;
}

.product-badge{
    background:#fff3e8;
    color:rgb(254,89,3);
    padding:8px 16px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

.details-image{
    text-align:center;
    margin:20px 0 30px;
}

.details-image img{
    width:240px;
}

.details-content h2{
    color:rgb(1,28,100);
    margin-bottom:6px;
}

.details-subtitle{
    color:#777;
    margin-bottom:25px;
}

.detail-row{
    display:flex;
    justify-content:space-between;
    padding:14px 0;
    border-bottom:1px solid #eee;
}

.detail-row span{
    color:#666;
}

.detail-row strong{
    color:#111;
}

.price-text{
    color:rgb(254,89,3);
}

.instock{
    color:green;
}

.details-actions{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:15px;
}

@media(max-width:1500px){

    .inventory-layout{
        grid-template-columns:1fr;
    }

    .inventory-box,
    .details-panel{
        height:auto;
    }

}

@media(max-width:900px){

    .category-grid{
        grid-template-columns:1fr 1fr;
    }

    .inventory-search-bar{
        grid-template-columns:1fr;
    }

    .header-actions{
        flex-direction:column;
    }

}

@media(max-width:600px){

    .category-grid{
        grid-template-columns:1fr;
    }

}