


body {
  font-family: Arial;
  margin: 0;
  background: #f5f6fa;
}

header {
  background: #1e272e;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cards {
  display: flex;
  gap: 10px;
  padding: 20px;
}

.card {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.card:hover {
  transform: scale(1.02);
}
input, select {
  margin: 5px;
  padding: 8px;
} 
button {
  padding: 10px 15px;
  background: #0984e3;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background: #0652dd;
}

table {
  width: 100%;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid black;
}

th {
  background: #0984e3;
  color: white;
  border: 1px solid black;
}

tr:hover {
  background: #f1f2f6;
}


td:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}
table td {
  padding: 10px;
  text-align: center;
  border: 1px solid black;
}
#pieChart {
  display: block;
  width: 400px;
  height: 400px;
  margin: 20px auto;
}


/* mobile view */
@media (max-width: 768px) {
body{
  width: 100%;
}
  header {
    flex-direction: row;
    gap: 10px;
    text-align: center;
    width: 100%;
  }

  .cards {
    flex-direction: column;
    padding: 0px;
    width: 100%;
  }

  .card {
    width: 100%;
  }

  #formSection {
    display: flex;
    flex-direction: column;
    padding: 10px 0px 0px 0px;
  }

  input, select, button {
    width: 100%;
    margin: 5px 0;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #pieChart {
    width: 100% ;
    height: auto;
  }
}


#pieChart {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 20px auto;
}

.dark {
  background: #1e272e;
  color: white;
}

.dark header {
  background: #000;
}

.dark .card {
  background: #2f3640;
  color: white;
}

.dark table {
  background: #2f3640;
  color: white;
}

.dark th {
  background: #353b48;
}

.dark input, 
.dark select {
  background: #2f3640;
  color: white;
  border: 1px solid #555;
}