/* General styles */
body {
  font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Navbar styles */
.navbar {
  background-color: #4caf50; /* Old green color */
  color: white;
  width: 100%;
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.navbar-brand {
  font-size: 1.5em;
  text-decoration: none;
  color: white;
}

.navbar-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.navbar-item {
  margin: 0 15px;
}

.navbar-link {
  text-decoration: none;
  color: white;
  font-size: 1em;
  transition: color 0.3s;
}

.navbar-link:hover {
  color: #e2e6ea;
}

.navbar-item-right {
  margin-left: auto;
}

/* Container styles */
.container {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 90%;
  max-width: 800px;
  padding: 20px;
  margin: 5rem auto 20px; /* Adjust margin to account for fixed navbar */
}

.header {
  background: #4caf50; /* Old green color */
  color: white;
  padding: 0.75rem;
  text-align: center;
  border-radius: 12px 12px 0 0;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th,
td {
  padding: 12px;
  text-align: left;
}

th {
  background-color: #e9ecef;
}

tr:nth-child(even) {
  background-color: #f8f9fa;
}

tr:hover {
  background-color: #e2e6ea;
}

/* Footer styles */
.footer {
  text-align: center;
  padding: 20px 0;
  background-color: #f8f9fa;
}

.footer a {
  color: #4caf50; /* Old green color */
  font-size: 18px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.footer a:hover {
  color: #388e3c; /* Darker shade of old green color */
  border-bottom: 2px solid #388e3c;
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
}

input {
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  padding: 10px;
  background-color: #4caf50; /* Old green color */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background-color: #388e3c; /* Darker shade of old green color */
}

/* Cancel button styles */
.cancel-btn {
  padding: 10px 20px;
  background-color: #ff6f61; /* Soft red color */
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cancel-btn:hover {
  background-color: #ff3b2f; /* Darker shade of red */
}

.cancel-btn:focus {
  outline: none;
  box-shadow: 0 0 5px rgba(255, 59, 47, 0.5);
}

cancel-btn:disabled {
  cursor: not-allowed;
  background-color: #cccccc; /* Light grey */
}

cancel-btn:disabled::after {
  content: "...";
  animation: ellipsis 1s infinite;
}

@keyframes ellipsis {
  0% {
    content: "...";
  }
  33% {
    content: ".....";
  }
  66% {
    content: ".......";
  }
  100% {
    content: "...";
  }
}

/* Message styles */

.message {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: bold;
}

.success {
  color: green;
}

.error {
  color: red;
}

/* Toggle Switch styles */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #4caf50; /* Old green color */
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
