/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: all 0.3s ease;
}

body {
  background: #0D1117; /* solid dark background for performance */
  color: #C9DDE5;      /* light text */
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* HEADER */
header {
  background: linear-gradient(90deg, #161B22, #0D1117);
  color: #4B6CB7; /* accent color */
  padding: 3rem 2rem;
  text-align: center;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

header p {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  color: #8B949E;
}

/* MAIN CONTENT */
main {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* GLASSMORPHISM CARDS */
.overview, .chart-container {
  background: rgba(22, 27, 34, 0.85); /* semi-transparent dark card */
  backdrop-filter: blur(6px); /* lighter blur for performance */
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  border: 1px solid rgba(75,108,183,0.2); /* static accent border */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.overview:hover, .chart-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  border-color: #4B6CB7;
}

.overview h2, .chart-container h2 {
  color: #4B6CB7;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.overview ul {
  margin-left: 1.2rem;
  color: #C9DDE5;
}

/* CHARTS */
.charts-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

canvas {
  width: 100% !important;
  height: 400px !important;
  max-width: 100%;
  border-radius: 16px;
  background: rgba(22, 27, 34, 0.8);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #161B22;
  margin-top: 3rem;
  border-top: 1px solid rgba(75,108,183,0.2);
}

footer a {
  color: #4B6CB7;
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: #738ADB;
  text-decoration: underline;
}

/* BUTTONS */
button {
  background: linear-gradient(90deg, #4B6CB7, #738ADB);
  color: #0D1117;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

button:hover {
  background: linear-gradient(90deg, #738ADB, #4B6CB7);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

/* SCROLLBAR */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: #0D1117;
}

*::-webkit-scrollbar-thumb {
  background: #4B6CB7;
  border-radius: 5px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  header h1 { font-size: 2rem; }
  header p { font-size: 1rem; }
  .charts-section { grid-template-columns: 1fr; }
}
