.nav-bar {
  background-color: #202020;
  display: flex;
  border-bottom: 3px solid var(--brand-color);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.nav-link {
  padding: 14px 22px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-link:hover {
  background-color: var(--brand-color);
  opacity: 50%;
}

.nav-link.active {
  background-color: var(--brand-color);
  font-weight: bold;
}

.nav-link.active:hover {
  background-color: var(--brand-color);
  font-weight: bold;
  opacity: 100%;
}

.toggle-bar {
  background-color: #202020;
  display: flex;
  border: 2px solid var(--brand-color);
  border-radius: 8px 8px 8px 8px;
  overflow: hidden;
}

.toggle-link {
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 1px;
}

.toggle-link:hover {
  background-color: var(--brand-color);
  opacity: 50%;
  color: rgba(40, 40, 40, 1);
}

.toggle-link.active {
  background-color: var(--brand-color);
  font-weight: bold;
  color: rgba(40, 40, 40, 1);
}

.toggle-link.active:hover {
  background-color: var(--brand-color);
  font-weight: bold;
  color: rgba(40, 40, 40, 1);
  opacity: 100%;
}

.toggle-bar-content {
  display: none;
}

.toggle-bar-content.active {
  display: inherit;
}

.btn {
  font-family: "Ikaros";
  padding: 8px 16px;
  background-color: var(--brand-color);
  color: var(--component-text-color);
  border: none;
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  letter-spacing: 1px;
}

.btn:hover {
  filter: brightness(85%);
}

.btn:focus {
  filter: brightness(60%);
}

.btn.secondary {
  background-color: gray;
}

a.btn {
  text-decoration: none;
  display: inline-flex;
  justify-content: space-around;
  text-align: center;
}

.btn-pill {
  display: inline-block;
  text-align: center;
  background: #222423;
  line-height: 34px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  text-decoration: none;
  padding: 0 1.75em;
  border: 1px solid transparent;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 30px;
}

.btn-pill:hover,
.btn-pill:active {
  background-color: rgba(40, 40, 40, 1);
  border-color: var(--brand-color);
}

.btn-pill:focus {
  outline: none;
}

.btn-pill.active {
  background-color: var(--brand-color);
  color: #000;
}

.select2-error {
  border: 2px solid red;
  border-radius: 4px;
}

.tooltip-popup {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 200px;
}

.tab-content.active {
  display: block;
}
.tab-content {
  display: none;
}

.simple-toggle {
  position: relative;
  display: inline-block;
  width: 75px;
  height: 39px;
}

.simple-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.simple-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #444;
  border: 2px solid var(--brand-color);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.simple-toggle .slider::before {
  content: "";
  position: absolute;
  height: 30px;
  width: 30px;
  left: 4.5px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.simple-toggle input:checked + .slider {
  background-color: var(--brand-color);
}

.simple-toggle input:checked + .slider::before {
  transform: translate(33px, -50%);
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.input-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* applies to input, select, and textarea */
.input-group input,
.input-group select,
.input-group textarea {
  padding: 0.75rem;
  border: 1px solid #2d2d2d;
  background-color: rgba(45, 45, 45, 0.4);
  color: #fff;
  border-radius: 6px;
  font-family: "Ikaros";
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--brand-color);
  outline: none;
  background-color: rgba(45, 45, 45, 0.6);
  box-shadow: 0 0 0 2px rgba(197, 149, 49, 0.2);
}

/* textarea-specific */
.input-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Add this to your existing CSS file */

/* Mobile dropdown styles */
@media (max-width: 768px) {
  .nav-bar {
    position: relative;
    flex-direction: column;
  }

  .nav-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    color: #fff;
    background-color: var(--brand-color);
    cursor: pointer;
    font-weight: bold;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.5px;
    font-family: inherit;
  }

  .nav-dropdown-toggle:after {
    content: "▼";
    transition: transform 0.3s ease;
    font-size: 12px;
  }

  .nav-dropdown-toggle.open:after {
    transform: rotate(180deg);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: #202020;
    border-top: 1px solid #2d2d2d;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    border-bottom: 1px solid #2d2d2d;
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}

/* Ensure desktop behavior is preserved */
@media (min-width: 769px) {
  .nav-dropdown-toggle {
    display: none;
  }

  .nav-links {
    display: flex !important;
    width: 100%;
  }
}
