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

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
}

/* Glassmorphism Container */
.container {
  width: 90%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Title */
h2 {
  font-size: 24px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Input Fields */
input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Buttons */
button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 10px;
}

/* Primary Button */
.add-btn {
  background: #2ecc71;
  color: white;
}

.add-btn:hover {
  background: #27ae60;
}

/* Modify Button */
.modify-btn {
  background: #f39c12;
  color: white;
}

.modify-btn:hover {
  background: #e67e22;
}

/* Delete Button */
.delete-btn {
  background: #e74c3c;
  color: white;
}

.delete-btn:hover {
  background: #c0392b;
}

/* Table Styling */
table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
  background: rgba(255, 255, 255, 0.3);
  font-size: 18px;
  text-transform: uppercase;
}

td {
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
      width: 95%;
  }

  table {
      font-size: 14px;
  }

  button {
      font-size: 14px;
      padding: 8px 12px;
  }
}

/* Graph Selection Dropdown */
.graph-selection {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.graph-selection label {
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.graph-selection select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid white;
  font-size: 16px;
  background: #f8f9fa; /* Light grey background */
  color: black; /* Dark text for better visibility */
  cursor: pointer;
  outline: none;
}

/* Change dropdown list color */
.graph-selection select option {
  background: white; /* White background for dropdown list */
  color: black; /* Black text for contrast */
}

.graph-selection select:hover {
  background: #e0e0e0;
}

/* Graph Container */
.chart-container {
  text-align: center;
}

/* Improve Graph Title & Legend Visibility */
.chart-container h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
}

/* Improve Pie Chart Text Visibility */
canvas {
  background: transparent;
}
