.toast{

position:fixed;

bottom:30px;

left:50%;

transform:translateX(-50%) translateY(100px);

background:#111;

color:#fff;

padding:14px 22px;

border-radius:12px;

font-weight:600;

opacity:0;

transition:.3s;

z-index:999999;

}

.toast.show{

opacity:1;

transform:translateX(-50%) translateY(0);

}

.toast.success{

background:#1fa34a;

}

.toast.error{

background:#d62d4c;

}

.toast.info{

background:#111;

}

/* ===========================
   MashaCH Admin Dashboard
=========================== */

*{
    margin:0;
    padding:0;
    max-width:100%;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html,
body{
    overflow-x:hidden;
}

body{
    background:#f5f6fa;
    overflow-x:hidden;
}

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

/* ===========================
   SIDEBAR
=========================== */

.sidebar{
    width:270px;
    background:linear-gradient(180deg,#cd104d,#a00c3b);
    color:#fff;
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    overflow-y:auto;
    box-shadow:4px 0 15px rgba(0,0,0,.15);
}

.logo{
    text-align:center;
    padding:35px 20px;
    border-bottom:1px solid rgba(255,255,255,.15);
}

.logo h2{
    font-size:30px;
    color:#fff8e5;
    margin-bottom:6px;
}

.logo span{
    font-size:14px;
    color:#000000;
}

.menu{
    list-style:none;
    padding:20px 0;
}

.menu li{

    display:flex;
    align-items:center;

    gap:15px;

    padding:16px 28px;

    cursor:pointer;

    transition:.3s;

    font-size:16px;

    border-left:4px solid transparent;
}

.menu li i{
    width:22px;
    text-align:center;
}

.menu li:hover{

    background:rgba(255,255,255,.08);

    border-left:4px solid #D4AF37;
}

.menu li.active{

    background:rgba(0, 0, 0, 0.12);

    border-left:4px solid #D4AF37;

    color:#110d01;
}

#logoutBtn{

margin-top:25px;

border-top:1px solid rgba(255,255,255,.15);

padding-top:20px;

}

/* ===========================
   MAIN
=========================== */

.main-content{

    margin-left:270px;

    flex:1;

    padding:30px;
}

/*Mobile Menu*/

/* MOBILE MENU */

.menu-btn{

    display:none;

    width:45px;

    height:45px;

    border:none;

    background:#cd104d;

    color:white;

    border-radius:8px;

    font-size:22px;

    cursor:pointer;

}

.overlay{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.45);

    z-index:998;

    display:none;

}

.overlay.active{

    display:block;

}

/* ===========================
   TOPBAR
=========================== */

.topbar{

    background:#fff;

    border-radius:12px;

    padding:18px 25px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

    margin-bottom:30px;
}

.topbar h1{

    font-size:30px;

    color:#b6850b;
}

.admin-user{

    background:#cd104d;

    color:#fff;

    padding:10px 18px;

    border-radius:30px;

    font-size:14px;
}

/* ===========================
   DASHBOARD CARDS
=========================== */

.cards{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-bottom:30px;
}

.card{

    background:#fff;

    border-radius:15px;

    padding:30px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

    transition:.3s;
}

.card:hover{

    transform:translateY(-6px);
}

.card h2{

    font-size:38px;

    color:#cd104d;

    margin-bottom:10px;
}

.card p{

    color:#666;

    font-size:15px;
}

/* ===========================
   CONTENT BOX
=========================== */

.content{

    background:#fff;

    padding:35px;

    border-radius:15px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.content h2{

    color:#333;

    margin-bottom:15px;
}

.content p{

    color:#666;

    line-height:1.8;
}

/* ===========================
   TABLE
=========================== */

.table-box{

    background:#fff;

    margin-top:30px;

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 8px 25px rgba(0,0,0,.05);
}

table{

    width:100%;

    border-collapse:collapse;
}

table th{

    background:#cd104d;

    color:white;

    padding:15px;

    text-align:left;
}

table td{

    padding:15px;

    border-bottom:1px solid #eee;
}

table tr:hover{

    background:#fafafa;
}

/* ===========================
   BUTTONS
=========================== */

.btn{

    padding:10px 18px;

    border:none;

    border-radius:6px;

    cursor:pointer;

    font-weight:600;
}

.btn-primary{

    background:#cd104d;

    color:white;
}

.btn-primary:hover{

    background:#cb9e2b;
}

.btn-gold{

    background:#d6a400;

    color:#222;
}

.btn-gold:hover{

    background:#c69b1e;
}

/* ===========================
   FORM
=========================== */

.form-group{

    margin-bottom:20px;
}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;
}

.form-group input,
.form-group textarea,
.form-group select{

    width:100%;

    padding:14px;

    border:1px solid #ddd;

    border-radius:8px;

    outline:none;

    font-size:15px;
}

.form-group textarea{

    resize:none;

    min-height:130px;
}

.form-row{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;
}

/* ===========================
   PRODUCT MANAGEMENT
=========================== */

.section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
    flex-wrap:wrap;
}

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

#searchProduct{

    width:300px;

    padding:12px 15px;

    border:1px solid #ddd;

    border-radius:8px;

    outline:none;

    font-size:15px;

}

#searchProduct:focus{

    border-color:#cd104d;

}

.product-form{

    background:#fff;

    border-radius:15px;

    padding:30px;

    margin-bottom:30px;

    box-shadow:0 8px 25px rgba(0,0,0,.05);

}

.product-form h3{

    color:#cd104d;

    margin-bottom:20px;

    font-size:22px;

}

.product-form hr{

    border:none;

    border-top:1px solid #ececec;

    margin:30px 0;

}

.checkbox-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

    margin-top:10px;

}

.checkbox-grid label{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:15px;

    cursor:pointer;

}

.checkbox-grid input{

    width:18px;

    height:18px;

}

.image-preview{

    display:grid;

    grid-template-columns:repeat(auto-fill,minmax(120px,1fr));

    gap:15px;

    margin-top:20px;

}

.image-preview img{

    width:100%;

    height:150px;

    object-fit:cover;

    border-radius:10px;

    border:1px solid #ddd;

}

.form-buttons{

    display:flex;

    gap:15px;

    flex-wrap:wrap;

}

.form-buttons button{

    min-width:170px;

}

.table-box{

    overflow-x:auto;

}

table{

    width:100%;

    border-collapse:collapse;

    min-width:1000px;

}

table th{

    background:#cd104d;

    color:#fff;

    padding:15px;

    font-size:15px;

}

table td{

    padding:15px;

    vertical-align:middle;

    border-bottom:1px solid #eee;

}

table img{

    width:70px;

    height:90px;

    object-fit:cover;

    border-radius:8px;

}

.action-buttons{

    display:flex;

    gap:8px;

}

.edit-btn{

    background:#e8b81c;

    color:#222;

    border:none;

    padding:8px 14px;

    border-radius:6px;

    cursor:pointer;

    font-weight:600;

}

.delete-btn{

    background:#d93025;

    color:#fff;

    border:none;

    padding:8px 14px;

    border-radius:6px;

    cursor:pointer;

    font-weight:600;

}

.status-active{

    color:#198754;

    font-weight:600;

}

.status-inactive{

    color:#d93025;

    font-weight:600;

}

.status-stock{

    color:#ff9800;

    font-weight:600;

}

.featured-badge{

    background:#D4AF37;

    color:#222;

    padding:5px 12px;

    border-radius:20px;

    font-size:12px;

    font-weight:600;

}

input[type=file]{

    padding:12px;

    border:2px dashed #ddd;

    border-radius:10px;

    background:#fafafa;

}

input[type=file]:hover{

    border-color:#cd104d;

}

textarea{

    resize:vertical;

}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{

    border-color:#cd104d;

    box-shadow:0 0 6px rgba(133,39,71,.2);

}


/* ===========================
        RESPONSIVE
=========================== */

@media(max-width:1200px){

.cards{

grid-template-columns:repeat(2,1fr);

}

}

.checkbox-grid{

grid-template-columns:repeat(2,1fr);

}

#searchProduct{

width:100%;

}



/* TABLET */

@media(max-width:992px){

.sidebar{

width:85px;

}

.logo span,
.menu li span{

display:none;

}

.checkbox-grid{

grid-template-columns:repeat(2,1fr);

}

#searchProduct{

width:100%;

}



.menu li{

justify-content:center;

padding:18px 0;

}

.menu li i{

font-size:20px;

}

.main-content{

margin-left:85px;

}

.cards{

grid-template-columns:repeat(2,1fr);

}
}



/* MOBILE */

@media(max-width:768px){

.dashboard{

display:block;

}

/* Sidebar */
.sidebar{

position:fixed;

top:0;
left:-280px;

width:280px;

height:100vh;

overflow-y:auto;
overflow-x:hidden;

-webkit-overflow-scrolling:touch;

padding-bottom:90px;

transition:.35s;

z-index:9999;

}

.sidebar.active{

left:0;

}

.main-content{

margin-left:0;

width:100%;

padding:16px;

}

.sidebar ul li a{

display:flex;

align-items:center;

gap:12px;

padding:14px 18px;

font-size:15px;

}

.sidebar ul li a i{

width:22px;

text-align:center;

font-size:18px;

}

.sidebar .logo{

padding:18px;

font-size:22px;

text-align:center;

}

/* Topbar */

.topbar{

display:flex;

justify-content:space-between;

align-items:center;

flex-direction:row;

padding:15px;

gap:10px;

}

.menu-btn{

display:flex;

align-items:center;

justify-content:center;

}

/* Cards */

.cards{

grid-template-columns:1fr;

gap:15px;

}

.card{

padding:20px;

}

.card h2{

font-size:30px;

}

/* Forms */

.form-row{

grid-template-columns:1fr;

gap:10px;

}

/* Tables */

.table-box{

overflow-x:auto;

}

table{

min-width:750px;

}

/* Buttons */

.btn{

width:100%;

padding:14px;

}

}

.product-form{

padding:20px;

}

.section-header{

flex-direction:column;

align-items:flex-start;

}

.header-actions{

width:100%;

flex-direction:column;

}

#searchProduct{

width:100%;

}

.form-buttons{

flex-direction:column;

}

.form-buttons button{

width:100%;

}

.checkbox-grid{

grid-template-columns:1fr;

}

.image-preview{

grid-template-columns:repeat(2,1fr);

}

table{

min-width:850px;

}

.hamburger{

display:block;

font-size:26px;

cursor:pointer;

margin-right:15px;
}



/* SMALL PHONE */

@media(max-width:480px){

.topbar{

padding:12px;

}

.topbar h1{

font-size:22px;

}

.admin-user{

font-size:12px;

padding:8px 14px;

}

.card{

padding:18px;

}

.card h2{

font-size:26px;

}

.content{

padding:18px;

}

.logo h2{

font-size:26px;

}

.product-form{

padding:15px;

}

.product-form h3{

font-size:20px;

}

.image-preview{

grid-template-columns:1fr 1fr;

gap:10px;

}

table img{

width:60px;

height:75px;

}



}