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

body{
display:flex;
background:#f4f6f9;
}

.sidebar{
width:220px;
background:#1f2937;
color:white;
height:100vh;
padding:20px;
position:fixed;
overflow:auto;
}

.sidebar h2{
margin-bottom:30px;
}

.sidebar ul{
list-style:none;
}

.sidebar li{
padding:12px;
margin-bottom:8px;
background:#374151;
border-radius:8px;
cursor:pointer;
transition:0.3s;
}

.sidebar li:hover{
background:#4b5563;
}

.main{
margin-left:220px;
width:100%;
}

header{
background:#2e7d32;
color:white;
padding:20px;
}

header h1{
margin-bottom:10px;
}

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

.card{
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 2px 10px rgba(0,0,0,.1);
text-align:center;
}

.card h2{
margin-top:10px;
}

.green{
color:green;
}

.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
gap:20px;
padding:20px;
}

.panel{
background:white;
padding:20px;
border-radius:12px;
box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.panel h3{
margin-bottom:15px;
}

.tank{
width:120px;
height:220px;
border:4px solid #444;
margin:auto;
border-radius:10px;
overflow:hidden;
}

.water{
height:78%;
background:#2196f3;
margin-top:48px;
}

.center{
text-align:center;
margin-top:15px;
}

.alerts{
padding-left:20px;
line-height:2;
}

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

.health-table td{
padding:10px;
border-bottom:1px solid #ddd;
}

.online{
color:green;
font-weight:bold;
}

.pump-btn{
margin-top:20px;
padding:12px 25px;
border:none;
background:#d32f2f;
color:white;
font-size:16px;
border-radius:8px;
cursor:pointer;
}

.pump-btn:hover{
background:#b71c1c;
}

footer{
text-align:center;
padding:30px;
font-size:18px;
}

@media(max-width:768px){

body{
flex-direction:column;
}

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

.main{
margin-left:0;
}

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

}
