*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f4f7fb;
}

.main-container{
    display:flex;
}

/* SIDEBAR */

.sidebar{
    width:260px;
    height:100vh;
    background:rgb(1,28,100);
    position:fixed;
    left:0;
    top:0;
    overflow-y:auto;
    padding:20px;
}

.logo-area{
    text-align:center;
    margin-bottom:40px;
}

.logo-area h2{
    color:white;
    font-size:28px;
}

.logo-area p{
    color:rgb(254,89,3);
    margin-top:5px;
}

.menu{
    list-style:none;
}

.menu li{
    margin-bottom:15px;
}

.menu li a{
    text-decoration:none;
    color:white;
    display:block;
    padding:14px 18px;
    border-radius:12px;
    transition:0.3s;
    font-size:16px;
}

.menu li a:hover,
.menu li.active a{
    background:rgb(254,89,3);
}

/* CONTENT */

.content-area{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:30px;
}

/* TOPBAR */

.topbar{
    background:white;
    padding:20px 25px;
    border-radius:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    box-shadow:0 4px 15px rgba(0,0,0,0.08);
}

.right-topbar{
    display:flex;
    align-items:center;
    gap:15px;
}

.right-topbar input{
    padding:12px 15px;
    border:1px solid #ddd;
    border-radius:10px;
    width:250px;
}

.admin-box{
    background:rgb(254,89,3);
    color:white;
    padding:12px 20px;
    border-radius:10px;
}

/* DASHBOARD CARDS */

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-bottom:30px;
}

.card{
    background:white;
    padding:30px;
    border-radius:20px;
    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:32px;
}

/* TABLE */

.table-section{
    background:white;
    padding:25px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.section-title{
    margin-bottom:20px;
}

.section-title h2{
    color:rgb(1,28,100);
}

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;
}

.active-status{
    background:#d4f8df;
    color:green;
    padding:6px 12px;
    border-radius:30px;
    font-size:13px;
}

/* RESPONSIVE */

@media(max-width:1100px){

    .dashboard-cards{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .content-area{
        margin-left:0;
        width:100%;
    }

    .dashboard-cards{
        grid-template-columns:1fr;
    }

    .topbar{
        flex-direction:column;
        gap:15px;
    }

    .right-topbar{
        width:100%;
        flex-direction:column;
    }

    .right-topbar input{
        width:100%;
    }

}

.category-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:30px;
}

.category-card{
    background:white;
    padding:25px;
    border-radius:20px;
    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{
    border-color:rgb(254,89,3);
    transform:translateY(-5px);
}

.category-card img{
    width:70px;
    margin-bottom:15px;
}

.category-card h3{
    color:rgb(1,28,100);
}

.inventory-layout{
    display:grid;
    grid-template-columns:250px 320px 250px 1fr;
    gap:20px;
}

.inventory-box,
.details-panel{
    background:white;
    border-radius:20px;
    padding:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    height:700px;
    overflow-y:auto;
}

.box-title{
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
}

.box-title h3{
    color:rgb(1,28,100);
}

.company-card{
    background:#f4f7fb;
    padding:16px;
    border-radius:14px;
    margin-bottom:15px;
    cursor:pointer;
    transition:0.3s;
    font-weight:600;
}

.company-card:hover,
.active-company{
    background:rgb(1,28,100);
    color:white;
}

.product-item{
    background:#f8f9ff;
    padding:16px;
    border-radius:16px;
    margin-bottom:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    transition:0.3s;
    border:2px solid transparent;
}

.product-item:hover,
.active-product{
    border-color:rgb(254,89,3);
}

.product-item h4{
    margin-bottom:5px;
    color:rgb(1,28,100);
}

.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{
    background:#f4f7fb;
    padding:14px;
    border-radius:14px;
    margin-bottom:15px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    cursor:pointer;
    transition:0.3s;
    font-size:14px;
}

.color-card:hover,
.active-color{
    background:rgb(1,28,100);
    color:white;
}

.color-preview{
    width:20px;
    height:20px;
    border-radius:50%;
}

.black{
    background:black;
}

.gray{
    background:gray;
}

.blue{
    background:blue;
}

.details-image{
    text-align:center;
    margin-bottom:25px;
}

.details-image img{
    width:220px;
}

.details-content h2{
    color:rgb(1,28,100);
    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;
}

.instock{
    color:green !important;
}

@media(max-width:1400px){

    .inventory-layout{
        grid-template-columns:1fr;
    }

    .inventory-box,
    .details-panel{
        height:auto;
    }

}

@media(max-width:768px){

    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

.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;
}

.add-btn{
    background:linear-gradient(135deg,rgb(254,89,3),#ff7d36);
    color:white;
    padding:14px 22px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
    transition:0.3s;
}

.add-btn:hover{
    transform:translateY(-2px);
}

.filter-box{
    background:white;
    padding:20px;
    border-radius:18px;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:15px;
    margin-bottom:30px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.filter-box select,
.filter-box input{
    padding:13px 14px;
    border:1px solid #ddd;
    border-radius:10px;
    outline:none;
}

.filter-btn{
    border:none;
    background:rgb(1,28,100);
    color:white;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.table-responsive{
    overflow-x:auto;
}

.product-img{
    width:55px;
    height:55px;
    object-fit:cover;
    border-radius:12px;
    background:#f4f7fb;
    padding:5px;
}

.edit-btn{
    border:none;
    background:#dce8ff;
    color:rgb(1,28,100);
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
    margin-right:5px;
    font-weight:600;
}

.delete-btn{
    border:none;
    background:#ffe1e1;
    color:#d40000;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

@media(max-width:1100px){

    .filter-box{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:768px){

    .page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
    }

    .filter-box{
        grid-template-columns:1fr;
    }

}

.form-container{
    background:white;
    padding:30px;
    border-radius:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.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;
    font-weight:600;
    color:rgb(1,28,100);
}

.form-group input,
.form-group select,
.form-group textarea{
    padding:14px 16px;
    border:1px solid #ddd;
    border-radius:12px;
    outline:none;
    background:#f8f9ff;
}

.form-group textarea{
    height:140px;
    resize:none;
}

.full-width{
    margin-top:25px;
}

.submit-btn{
    margin-top:30px;
    border:none;
    background:linear-gradient(135deg,rgb(254,89,3),#ff7a2f);
    color:white;
    padding:16px 30px;
    border-radius:14px;
    font-size:16px;
    cursor:pointer;
    font-weight:bold;
}

.submit-btn:hover{
    opacity:0.9;
}

@media(max-width:768px){

    .form-grid{
        grid-template-columns:1fr;
    }

}

.category-management-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    margin-bottom:40px;
}

.manage-category-card{
    background:white;
    padding:30px;
    border-radius:22px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
}

.manage-category-card:hover{
    transform:translateY(-5px);
}

.category-icon{
    font-size:45px;
    margin-bottom:20px;
}

.manage-category-card h3{
    color:rgb(1,28,100);
    margin-bottom:10px;
}

.manage-category-card p{
    color:#666;
    margin-bottom:20px;
}

.category-stats{
    background:#f4f7fb;
    padding:12px;
    border-radius:12px;
    margin-bottom:20px;
    font-weight:600;
}

.category-actions{
    display:flex;
    gap:10px;
}

.analytics-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
}

.analytics-card{
    background:white;
    padding:25px;
    border-radius:22px;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.analytics-header{
    margin-bottom:25px;
}

.analytics-header h3{
    color:rgb(1,28,100);
}

.stock-row,
.gift-row,
.low-stock-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0;
    border-bottom:1px solid #eee;
}

.stock-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.large-card{
    grid-column:span 2;
}

#inventoryChart{
    width:100%;
    height:350px !important;
}

@media(max-width:1100px){

    .category-management-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .analytics-grid{
        grid-template-columns:1fr;
    }

    .large-card{
        grid-column:span 1;
    }

}

@media(max-width:768px){

    .category-management-grid{
        grid-template-columns:1fr;
    }

}

.sidebar-logo{
    width:140px;
    margin-bottom:15px;
    background:white;
    padding:10px;
    border-radius:14px;
}

.logo-area{
    text-align:center;
    margin-bottom:40px;
    padding-bottom:25px;
    border-bottom:1px solid rgba(255,255,255,0.15);
}

.logo-area h2{
    color:white;
    font-size:28px;
    margin-top:10px;
}

.logo-area p{
    color:rgb(254,89,3);
    margin-top:6px;
    font-size:14px;
    letter-spacing:1px;
}

.logout-btn{
    margin-top:30px;
}

.logout-btn a{
    background:#ffeded !important;
    color:#d40000 !important;
    font-weight:bold;
}

.logout-btn a:hover{
    background:#ff3b3b !important;
    color:white !important;
}

body{
    font-family:'Poppins',sans-serif;
}

/* LOGIN PAGE */

.login-body{
    margin:0;
    padding:0;
    background:#f4f7fb;
    overflow:hidden;
}

.login-container{
    width:100%;
    height:100vh;
    display:flex;
}

/* LEFT SIDE */

.login-left{
    width:55%;
    background:
    linear-gradient(
        rgba(1,28,100,0.85),
        rgba(1,28,100,0.92)
    ),
    url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070');

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;

    position:relative;
}

.login-content{
    text-align:center;
    color:white;
    z-index:2;
    padding:40px;
}

.login-logo{
    width:180px;
    background:white;
    padding:15px;
    border-radius:20px;
    margin-bottom:30px;
}

.login-content h1{
    font-size:60px;
    margin-bottom:15px;
    font-weight:700;
}

.login-content p{
    font-size:18px;
    opacity:0.9;
}

/* RIGHT SIDE */

.login-right{
    width:45%;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px;
    background:#f4f7fb;
}

.login-box{
    width:100%;
    max-width:430px;
    background:white;
    padding:45px;
    border-radius:30px;
    box-shadow:0 10px 40px rgba(0,0,0,0.08);
}

.login-box h2{
    color:rgb(1,28,100);
    font-size:34px;
    margin-bottom:10px;
}

.login-box p{
    color:#666;
    margin-bottom:35px;
}

.input-group{
    margin-bottom:25px;
}

.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:14px;
    outline:none;
    background:#f8f9ff;
    font-size:15px;
}

.input-group input:focus{
    border-color:rgb(254,89,3);
}

.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;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.login-btn:hover{
    transform:translateY(-2px);
}

.dummy-note{
    margin-top:30px;
    background:#fff5ef;
    padding:18px;
    border-radius:14px;
    color:#ff5b00;
    font-size:14px;
    line-height:1.8;
}

/* RESPONSIVE */

@media(max-width:1000px){

    .login-left{
        display:none;
    }

    .login-right{
        width:100%;
    }

}

@media(max-width:600px){

    .login-box{
        padding:30px;
    }

    .login-content h1{
        font-size:40px;
    }

}