* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { display: flex; height: 100vh; background-color: #f4f7f6; color: #333; }
/*body { display: flex; height: 100vh; background-color: #f4f7f6; color: #333; flex-direction: column; align-items: center; margin: 0;}*/
        
/* Sidebar */
.sidebar { width: 13vw; background: #003900; border-right: 1px solid #e0e0e0; display: flex; flex-direction: column; align-items: left; }
/*adaptation to small phone screen */
@media (max-width: 200px) {.sidebar{width:200px;}}
.sidebar-header { padding: 20px; font-size: 1.5rem; font-weight: bold; border-bottom: 1px solid #eee; color:#ffea00; }
.nav-links { list-style: none; padding: 20px 0; flex-grow: 1; color:#ffea00}
.nav-links li { padding: 12px 25px; cursor: pointer; transition: 0.3s; }
.nav-links li:hover { background: #f0f0f0; color: #007bff; }
        
/* Main Content */
.main-content { flex-grow: 1; display: flex; flex-direction: column; overflow-y: auto; }
header { height: 60px; background: #e0e0e0; display: flex; align-items: center; padding: 0 30px; border-bottom: 1px solid #e0e0e0; justify-content: space-between; margin-top: 5px; }
.bgimage { opacity: 0.4; position: absolute; left: 13vw; top: 80px; width: 87vw; height: auto; }

/* Text Content */
.text-main { margin-top: 10px; font-size:0.9rem; color:#000000; }
        
/* Dashboard Grid */
.content-body { padding: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.card { background: #e0e0e0; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.card h3 { font-size: 0.9rem; color: #777; margin-bottom: 10px; }
.card p { font-size: 1.5rem; font-weight: bold; }

/* Chart Configuration */
.content-chart { background: #e0e0e0; padding: 30px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.chart { background: #e0e0e0; padding: 20px; border-radius: 8px; border: 1px solid #e0e0e0; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
canvas { border-radius: 8px;background-color: #003900; }
.info { margin-top: 15px; text-align: center; font-size: 0.9rem; color: #a0a0c0; }
.value { color: #3f0000; font-weight: bold; }

 /* Creates the 2-column grid structure */
.grid-container {display: grid; grid-template-columns: repeat(2, minmax(500px, 1fr)); gap: 15px; margin: 0 auto;}

/* Forces images to stay inside the grid cells responsively */
.grid-container img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 8px;}

/* Collapses to 1 column on small phone screens */
@media (max-width: 600px) { .grid-container {grid-template-columns: 1fr; } }