body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

.logo-container {
  background-color: #003471;
  padding: 20px 0;
  text-align: center;
}

.logo {
  max-width: 200px;
}

.container {
  max-width: 900px;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

h1 {
  text-align: center;
  color: #003471;
  margin-bottom: 20px;
}

.toggle-button-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

button {
  background-color: #003471;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #61bb46;
}

.controls, .single-pen-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

input[type="text"], input[type="number"], select {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 200px;
  transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border-color: #003471;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  min-width: 600px;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
  white-space: nowrap;
}

th {
  background-color: #f2f2f2;
  color: #555;
}

th:first-child, td:first-child {
  position: sticky;
  left: 0;
  background-color: #f2f2f2; /* Ensure consistent background color */
  z-index: 1;
}

tr:hover {
  background-color: #f1f1f1;
}

#penDetails {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fafafa;
  margin-top: 20px;
}

#penDetails h3 {
  margin-top: 0;
  color: #003471;
}

#penDetails p {
  margin: 5px 0;
}

@media (max-width: 600px) {
  .container {
      padding: 10px;
  }

  button {
      width: 100%;
      margin-bottom: 10px;
  }

  input[type="text"], input[type="number"], select {
      width: 100%;
  }

  #penDetails {
      padding: 15px;
  }
}