body {
  font-family: Arial, sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

body.light-theme {
  background-color: #f4f4f4;
  color: #000;
}

body.dark-theme {
  background-color: #1f2937;
  color: #fff;
}

.container {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
}

body.dark-theme .container {
  background-color: #374151;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1, h3 {
  text-align: center;
  color: #2563eb;
  margin-bottom: 20px;
}

body.dark-theme h1, body.dark-theme h3 {
  color: #60a5fa;
}

.section {
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #2563eb;
  font-weight: bold;
}

body.dark-theme label {
  color: #60a5fa;
}

input[type="text"], textarea, select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

body.dark-theme input[type="text"], body.dark-theme textarea, body.dark-theme select {
  background-color: #4b5563;
  color: #fff;
  border-color: #6b7280;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2563eb;
}

body.dark-theme input:focus, body.dark-theme textarea:focus, body.dark-theme select:focus {
  border-color: #60a5fa;
}

textarea {
  height: 80px;
  resize: vertical;
}

button {
  padding: 10px;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

body.dark-theme button {
  background-color: #60a5fa;
}

button:hover {
  background-color: #1e40af;
}

body.dark-theme button:hover {
  background-color: #3b82f6;
}

#themeToggle {
  position: absolute;
  top: 20px;
  right: 20px;
  width: auto;
}

.dashboard {
  margin-top: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

body.dark-theme th, body.dark-theme td {
  border-bottom: 1px solid #6b7280;
}

th {
  background-color: #2563eb;
  color: white;
  position: sticky;
  top: 0;
}

body.dark-theme th {
  background-color: #60a5fa;
}

.error {
  color: #dc2626;
  text-align: center;
  margin-top: 10px;
}

.notification {
  margin-top: 10px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  background-color: #d1fae5;
  color: #065f46;
}

.back-button {
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #2563eb;
  text-decoration: none;
  font-weight: bold;
}

body.dark-theme .back-button {
  color: #60a5fa;
}

.back-button:hover {
  color: #1e40af;
}

body.dark-theme .back-button:hover {
  color: #3b82f6;
}

.footer-note {
  text-align: center;
  margin-top: 20px;
  color: #4b5563;
  font-size: 0.9em;
}

body.dark-theme .footer-note {
  color: #9ca3af;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
  color: #2563eb;
}

body.dark-theme .tooltip {
  color: #60a5fa;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 200px;
  background-color: #2563eb;
  color: white;
  text-align: center;
  border-radius: 4px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

body.dark-theme .tooltip .tooltip-text {
  background-color: #60a5fa;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
}

body.dark-theme .modal-content {
  background-color: #374151;
}

.print-only {
  display: none;
}

@media print {
  body * {
    visibility: hidden;
  }
  #printContent, #printContent * {
    visibility: visible;
  }
  #printContent {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
  }
  .print-only {
    display: block;
    text-align: center;
    margin-bottom: 10px;
  }
  table {
    font-size: 12pt;
    border: 1px solid #000;
  }
  th, td {
    border: 1px solid #000;
    padding: 8px;
  }
  th {
    background-color: #2563eb;
    color: white;
  }
  .footer-note {
    margin-top: 20px;
    font-size: 10pt;
  }
}

@media (max-width: 600px) {
  table {
    font-size: 0.9em;
  }
  th, td {
    padding: 5px;
  }
}