
body{
margin:0;
font-family:Segoe UI, sans-serif;
}

.login-body{
background:url('https://images.unsplash.com/photo-1500382017468-9049fed747ef') no-repeat center center/cover;
height:100vh;
display:flex;
justify-content:center;
align-items:center;
}

.login-box{
background:white;
padding:40px;
border-radius:10px;
box-shadow:0 10px 30px rgba(0,0,0,0.3);
width:320px;
text-align:center;
}

.login-box input{
width:100%;
padding:10px;
margin:10px 0;
}

.sidebar{
width:240px;
background:#1b5e20;
color:white;
height:100vh;
position:fixed;
}

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

.sidebar ul{
list-style:none;
padding:0;
}

.sidebar ul li{
padding:15px;
border-bottom:1px solid rgba(255,255,255,0.1);
cursor:pointer;
}

.sidebar ul li:hover{
background:#2e7d32;
}

.content{
margin-left:240px;
padding:20px;
background:#f4f6f9;
min-height:100vh;
}

.topbar{
display:flex;
justify-content:space-between;
margin-bottom:20px;
}

.dashlets{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:20px;
margin-bottom:30px;
}

.card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
text-align:center;
}

.card i{
font-size:30px;
margin-bottom:10px;
}

.charts{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

.chart-box{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

body{
margin:0;
font-family:Segoe UI,Arial;
background:#f4f6f9;
}

/* SIDEBAR */

.sidebar{
width:240px;
background:#1b5e20;
color:white;
height:100vh;
position:fixed;
left:0;
top:0;
transition:0.3s;
overflow:auto;
}

.sidebar.collapsed{
width:70px;
}

.sidebar h2{
text-align:center;
padding:20px 10px;
margin:0;
font-size:20px;
}

.menu-item{
padding:14px 18px;
display:flex;
align-items:center;
gap:12px;
cursor:pointer;
border-bottom:1px solid rgba(255,255,255,0.1);
}

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

.menu-item:hover{
background:#2e7d32;
}

.submenu{
display:none;
background:rgba(0,0,0,0.1);
}

.submenu a{
display:block;
padding:10px 40px;
color:white;
text-decoration:none;
}

.submenu a:hover{
background:#2e7d32;
}

/* CONTENT */

.content{
margin-left:240px;
padding:25px;
transition:0.3s;
}

.sidebar.collapsed + .content{
margin-left:70px;
}

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:20px;
}

.toggle-btn{
font-size:22px;
cursor:pointer;
}

/* DASHLETS */

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

.card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
text-align:center;
cursor:pointer;
transition:0.2s;
}

.card:hover{
transform:translateY(-3px);
}

.card i{
font-size:32px;
margin-bottom:10px;
}

/* TABLES */

table{
width:100%;
border-collapse:collapse;
background:white;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

th,td{
padding:10px;
border-bottom:1px solid #ddd;
}

th{
background:#eee;
}

/* MOBILE */

@media(max-width:900px){

.sidebar{
left:-240px;
}

.sidebar.show{
left:0;
}

.content{
margin-left:0;
}

}
