*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}

/* BODY */

body{
background:#f4f6f9;
display:flex;
min-height:100vh;
}

/* SIDEBAR */

.sidebar{
width:240px;
background:linear-gradient(180deg,#009688,#00695c);
height:100vh;
color:white;
position:fixed;
}

.sidebar h2{
text-align:center;
padding:20px;
}

.sidebar a{
display:block;
padding:14px 20px;
color:white;
text-decoration:none;
}

.sidebar a:hover{
background:rgba(255,255,255,0.15);
}

/* MAIN */

.main{
margin-left:240px;
padding:25px;
width:100%;
}

.products{
display:grid;
grid-template-columns:repeat(<?php echo $columns; ?>,1fr);
gap:<?php echo $padding; ?>px;
padding:<?php echo $padding; ?>px;
}

.card{
background:white;
padding:<?php echo $padding; ?>px;
border-radius:8px;
box-shadow:0 2px 6px rgba(0,0,0,0.1);
cursor:pointer;
text-align:center;
}

.card img{
width:100%;
height:<?php echo $imageHeight; ?>px;
object-fit:cover;
border-radius:6px;
}

/* DASHBOARD GRID */

.dashboard-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:20px;
margin-bottom:20px;
}

/* DASHBOARD CARDS */

.dash-card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 3px 10px rgba(0,0,0,0.08);
display:flex;
align-items:center;
gap:15px;
}

.dash-card i{
font-size:30px;
color:#009688;
}

.dash-card h3{
font-size:14px;
color:#777;
}

.dash-card p{
font-size:22px;
font-weight:bold;
}

/* FORM GRID */

.form-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
margin-top:20px;
}

.form-group{
display:flex;
flex-direction:column;
}

.form-group.full{
grid-column:1/3;
}

.form-group label{
font-weight:600;
margin-bottom:6px;
}

.form-group input,
.form-group select{
padding:10px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
}

/* BUTTON */

.btn{
background:#009688;
color:white;
border:none;
padding:12px 20px;
border-radius:6px;
cursor:pointer;
font-size:15px;
}

.btn:hover{
background:#00796b;
}

/* TABLE */

table{
width:100%;
border-collapse:collapse;
margin-top:15px;
}

table th{
background:#009688;
color:white;
padding:10px;
text-align:left;
}

table td{
padding:10px;
border-bottom:1px solid #eee;
}

/* IMAGE */

.preview-img{
width:120px;
border-radius:8px;
}

.thumb{
width:60px;
border-radius:6px;
}

/* MOBILE */

@media(max-width:900px){

.sidebar{
width:200px;
}

.main{
margin-left:200px;
}

}

@media(max-width:768px){

.sidebar{
width:180px;
}

.main{
margin-left:180px;
padding:15px;
}

.form-grid{
grid-template-columns:1fr;
}

.form-group.full{
grid-column:auto;
}

.dashboard-grid{
grid-template-columns:1fr;
}

}

@media(max-width:500px){

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

.main{
margin-left:0;
}

}

/* TOGGLE SWITCH */

.switch{
position:relative;
display:inline-block;
width:46px;
height:24px;
}

.switch input{
opacity:0;
width:0;
height:0;
}

.slider{
position:absolute;
cursor:pointer;
top:0;
left:0;
right:0;
bottom:0;
background:#ccc;
transition:.4s;
border-radius:24px;
}

.slider:before{
position:absolute;
content:"";
height:18px;
width:18px;
left:3px;
bottom:3px;
background:white;
transition:.4s;
border-radius:50%;
}

input:checked + .slider{
background:#009688;
}

input:checked + .slider:before{
transform:translateX(22px);
}

/* DELETE BUTTON */

.search-bar{
margin-bottom:20px;
}

.search-bar input{
width:100%;
padding:10px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
}

.btn.small{
padding:6px 10px;
font-size:13px;
}

.btn.danger{
background:#e53935;
}

.btn.danger:hover{
background:#c62828;
}

/* RADIO TABLE */

.radio-table{
width:100%;
border-collapse:collapse;
}

.radio-table th{
background:#009688;
color:white;
padding:10px;
text-align:left;
}

.radio-table td{
padding:10px;
border-bottom:1px solid #ddd;
vertical-align:middle;
}


/* RADIO IMAGE */

.thumb{
width:80px;
height:60px;
object-fit:cover;
border-radius:6px;
border:1px solid #ddd;
}


/* LAYOUT INFO */

.layout-info{
background:#f5f5f5;
padding:8px;
margin-bottom:10px;
font-size:13px;
border-left:4px solid #009688;
}

/* SMALL BUTTON */

.btn.small{
padding:6px 10px;
font-size:13px;
}

/* ACTION BUTTON */

.btn.danger{
background:#e53935;
color:white;
}