/* Global styling */
body{
font-family: Arial, sans-serif;
margin:0;
background: linear-gradient(to right,#e8f5e9,#ffffff);
}

/* Navbar */
nav{
display:flex;
justify-content:space-between;
align-items:center;
background:#2e7d32;
padding:15px 40px;
color:white;
}

nav h2{
margin:0;
}

nav ul{
list-style:none;
display:flex;
gap:25px;
margin:0;
}

nav ul li a{
text-decoration:none;
color:white;
font-weight:bold;
}

nav ul li a:hover{
color:#c8e6c9;
}

/* Main container */
.container{
width:80%;
margin:auto;
text-align:center;
padding:40px;
}

/* Cards */
.card{
background:white;
padding:20px;
margin:20px auto;
border-radius:10px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
width:60%;
}

/* Buttons */
button{
background:#43a047;
color:white;
border:none;
padding:10px 20px;
border-radius:5px;
cursor:pointer;
}

button:hover{
background:#2e7d32;
}

/* Tables */
table{
border-collapse:collapse;
width:60%;
margin:auto;
background:white;
}

th,td{
padding:10px;
border:1px solid #ddd;
}

th{
background:#4caf50;
color:white;
}

/* Chart container */
canvas{
max-width:600px;
margin:auto;
}
nav button{
background:#ef5350;
padding:6px 12px;
font-size:14px;
}

nav button:hover{
background:#c62828;
}

tr:nth-child(1){
background:#fff9c4;
font-weight:bold;
}

/* Sustainability score progress bar */

.score-container{
width:60%;
margin:20px auto;
background:#e0e0e0;
border-radius:20px;
overflow:hidden;
height:25px;
}

#scoreBar{
height:100%;
width:0%;
background:#4caf50;
transition:width 0.5s ease;
}

/* Environmental Impact Cards */

.impact-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
width:80%;
margin:20px auto;
}

.impact-card{
background:white;
padding:20px;
border-radius:10px;
box-shadow:0 4px 10px rgba(0,0,0,0.1);
text-align:center;
}

.impact-card h3{
margin-bottom:10px;
}

.impact-card p{
font-size:24px;
font-weight:bold;
color:#2e7d32;
}