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

.container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  text-align: center;
  color: #333;
}

form {
  display: grid;
  gap: 15px;
}

label {
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="date"],
select,
input[type="file"] {
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

input[type="text"].invalid,
input[type="date"].invalid,
select.invalid,
input[type="file"].invalid {
  border-color: red !important;
}

select {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6'%3E%3Cpath fill='%23000' d='M6 6L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

select:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

button {
  padding: 12px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

button:disabled {
  background-color: #808080;
  cursor: not-allowed;
}

#map {
  height: 300px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.coordinate-inputs {
  gap: 20px;
  align-items: flex-end;
}

.input-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.input-group label {
  margin-bottom: 5px;
}

#saveLocationBtn {
  background-color: #2196f3;
  margin-left: 20px;
}

nav {
  margin-bottom: 20px;
}

nav ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav ul li {
  margin-right: 10px;
  margin-bottom: 10px;
}

.nav-link {
  text-decoration: none;
  padding: 8px 12px;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav-link.active {
  background-color: #4caf50;
  color: white;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.select2-container .select2-selection--single {
  height: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  position: absolute;
  top: 1px;
  right: 1px;
  width: 20px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #555;
  line-height: 28px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px;
}

.select2-container--default
  .select2-results__option--highlighted[aria-selected] {
  background-color: #4caf50;
  color: white;
}

.select2-container--default .select2-selection--single.invalid {
  border-color: red !important;
}

.spinner-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: repeating-conic-gradient(#eab630 0 90deg, #374774 0 180deg);
  animation: spin 1s infinite linear;
  margin: 0 auto;
}

.loading-text {
  margin-top: 10px;
  font-size: 16px;
  color: #333;
  display: inline-block;
}

.loading-text span {
  display: inline-block;
  animation: wave 1s infinite;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#preview {
  display: none;
  max-width: 400px;
  max-height: 400px;
  object-fit: cover;
  border: 1px solid #ccc;
  margin-top: 10px;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  margin: 10px;
}

.icon-button:focus {
  outline: none;
}

.captcha-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.captcha-container {
  display: flex;
  align-items: center;
  margin-top: 10px;
  border: 1px solid #ccc !important;
  border-radius: 4px;
  /* Add rounded corners */
}

#captchaImage {
  width: 120px;
  height: 40px;
}

.refresh-btn {
  background-color: #4caf50;
  color: #333;
  padding: 0;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
  height: 40px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 10px;
  /* Add margin to create space between image and button */
}

.refresh-btn:hover {
  background-color: #e0e0e0;
}

.refresh-btn i {
  font-size: 16px;
}

#captchaInput {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

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

  .coordinate-inputs {
    gap: 10px;
    flex-direction: column;
  }

  #saveLocationBtn {
    margin-left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin-right: 0;
  }
}
