
/*======================================
  Base Button Styles
======================================*/
.btn {
  font-family: var(--button-font-family, var(--body-font-family)) !important;
  font-size: var(--button-font-size, 15px);
  font-weight: var(--button-font-weight, 600) !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
  line-height: normal !important;
}

/*======================================
  Standard Button (btn_primary)
======================================*/
.btn_primary {
  background: transparent !important;
  color: var(--theme-dark-color) !important;
  border-bottom: 1px solid var(--theme-dark-color) !important;
  border-radius: 0px !important;
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em) !important;
  padding: 0.75rem 0rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: auto;
  min-width: 200px;
}

.btn_primary:hover,
.btn_primary.active,
.btn_primary:focus {
  background: transparent !important;
  color: var(--theme-dark-color) !important;
  border-bottom: 1px solid var(--theme-dark-color) !important;
  transform: translateY(-0.2rem);
}

.btn_primary:disabled {
  background: var(--button-disabled-bg) !important;
  color: var(--button-disabled-txt) !important;
  border: 1px solid var(--button-disabled-border) !important;
  cursor: not-allowed;
  transform: none;
}

/*======================================
  Alternate Button (btn_primary_alternate)
======================================*/
.btn_primary_alternate {
  background: transparent !important;
  color: var(--theme-light-color) !important;
  border-bottom: 1px solid var(--theme-light-color) !important;
  border-radius: 0px !important;
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em) !important;
  padding: 0.75rem 0rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: auto;
  min-width: 200px;
}

.btn_primary_alternate:hover,
.btn_primary_alternate.active,
.btn_primary_alternate:focus {
  background: transparent !important;
  color: var(--theme-grey-color) !important;
  border-bottom: 1px solid var(--theme-grey-color) !important;
  transform: translateY(-0.2rem);
}

.btn_primary_alternate:disabled {
  background: var(--button-disabled-bg) !important;
  color: var(--button-disabled-txt) !important;
  border: 1px solid var(--button-disabled-border) !important;
  cursor: not-allowed;
  transform: none;
}

/*======================================
  Button Focus & Small Sizes
======================================*/
.btn-check:focus + .btn,
.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 .25rem var(--theme-primary-trans-color);
}

.btn-sm,
.btn_sm {
  padding: 0.4rem 1rem !important;
}

/*======================================
  Navigation Pills
======================================*/
.nav-pills {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 750px) {
  .nav-pills {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

.nav-pills .nav-item {
  flex: 1 1 100%;
}

@media (min-width: 750px) {
  .nav-pills .nav-item {
    flex: 0 0 auto;
  }
}

.nav-pills .nav-link {
  background: transparent !important;
  color: var(--theme-dark-color) !important;
  border-bottom: 1px solid var(--theme-dark-color) !important;
  border-radius: 0px !important;
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em) !important;
  padding: 0.75rem 0rem !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center;
  width: auto;
  min-width: 200px;
}

@media (min-width: 750px) {
  .nav-pills .nav-link {
    min-width: 200px;
  }
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: transparent !important;
  color: var(--theme-primary-color) !important;
  border-bottom: 1px solid var(--theme-primary-color) !important;
}

.nav-pills .nav-link:hover:focus {
  background: transparent !important;
  color: var(--theme-primary-color) !important;
  border-bottom: 1px solid var(--theme-primary-color) !important;
}

.nav-link.disabled {
  background: var(--button-disabled-bg) !important;
  color: var(--button-disabled-txt) !important;
  border: 1px solid var(--button-disabled-border) !important;
  cursor: not-allowed;
}

/*======================================
  Timezone Dropdown Styling
======================================*/
#tabs-timezone-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#timezone-selector {
  position: relative;
  display: flex;
  align-items: center;
  background: transparent !important;
  color: var(--theme-dark-color) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--theme-dark-color) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--button-font-family, var(--body-font-family));
  font-size: var(--button-font-size, 15px);
  font-weight: var(--button-font-weight, 600);
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em);
  line-height: normal;
  transition: all 0.2s ease;
  padding: 0.75rem 0 !important;
  cursor: pointer;
  min-width: 200px;
  user-select: none;
  width: auto;
  text-align: left;
  justify-content: space-between;
}

#timezone-selector:hover,
#timezone-selector.open {
  background: transparent !important;
  color: var(--theme-dark-color) !important;
  border-bottom: 1px solid var(--theme-dark-color) !important;
}

#timezone-selector #selected-timezone {
  color: var(--theme-dark-color) !important;
  margin: 0;
  flex: 1;
  font-family: var(--button-font-family, var(--body-font-family));
  font-size: var(--button-font-size, 15px);
  font-weight: var(--button-font-weight, 600);
  text-transform: var(--button-text-transform, uppercase);
  letter-spacing: var(--button-letter-spacing, 0.1em);
}

#timezone-selector i {
  margin-left: 0.5rem;
  font-size: 12px;
  transition: transform 0.2s ease;
  color: currentColor;
}

#timezone-selector.open i {
  transform: rotate(180deg);
}

#timezone-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--theme-light-color);
  border: 1px solid var(--theme-primary-color);
  border-radius: var(--border-radius-button);
  padding: 1.5rem;
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  width: max-content;
  min-width: 100%;
}

#timezone-dropdown p {
  margin: 0;
  padding: 0.3rem 0;
  color: var(--theme-dark-color);
  cursor: pointer;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  font-family: var(--button-font-family, var(--body-font-family));
  font-size: var(--button-font-size, 15px);
  font-weight: var(--button-font-weight, 600);
  text-align: left;
  border: 0;
  background-color: transparent;
  width: 100%;
  display: block;
}

#timezone-dropdown p:hover {
  color: var(--theme-primary-color);
  background: transparent;
  text-decoration: none;
}

@media (max-width: 768px) {
  #tabs-timezone-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  #timezone-selector {
    align-self: center;
    min-width: 200px;
  }
}

@media (max-width: 576px) {
  #timezone-selector {
    width: 100%;
    min-width: auto;
  }
}
