/* General Layout */
body {
  font-family: 'Roboto', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #1E1E1E;
  color: #F5F5F5;
  height: 100vh; /* Full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevent infinite scroll */
}

#dashboard {
  display: grid;
  grid-template-columns: 1fr 3fr; /* Sidebar takes 1/4 of space, chart takes 3/4 */
  grid-gap: 2rem; /* Add more space between sidebar and chart */
  height: 90vh; /* Adjust height to fit viewport */
  width: 90vw; /* Adjust width to fit viewport */
  padding: 1rem;
  box-sizing: border-box;
  background-color: #121212;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Sidebar */
#sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Increase spacing between cards */
}

#sidebar .card {
  background-color: #2A2A2A;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#sidebar .card h2 {
  font-size: 1.1rem;
  color: #F3BA2F;
  margin-bottom: 0.8rem;
}

#sidebar .card input,
#sidebar .card button {
  font-size: 0.95rem;
  color: #F5F5F5;
  background: #333333;
  border: 1px solid #444444;
  border-radius: 6px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  width: 100%;
}

#sidebar .card button {
  cursor: pointer;
  transition: background 0.3s ease;
}

#sidebar .card button:hover {
  background: #444444;
}

/* Navigation Button */
nav {
  text-align: center;
  margin-top: 1rem;
}

nav a {
  text-decoration: none;
  color: #F5F5F5;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

nav a:hover {
  background-color: #333;
  color: #F3BA2F;
}

nav .active {
  color: #F3BA2F;
  background-color: #444;
  border: 1px solid #555;
}

/* Chart Area */
#main-content {
  background-color: #2A2A2A;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  height: 100%; /* Constrain height to fit grid */
  overflow: hidden;
}

/* Chart Title */
.chart-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #F5F5F5;
  margin-bottom: 1rem;
  text-align: center;
}

/* Chart Block */
#chart-container {
  width: 100%;
  height: calc(100% - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

#chart {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
