.btn_primary_default {
  background: var(--button-bg) !important;
  color: var(--button-txt) !important;
  border: 1px solid var(--button-border) !important;
  border-radius: var(--button-border-radius, 8px);
  font-size: var(--button-font-size, 16px);
  font-family: var(--body-font-family);
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em);
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
  display: flex;
  width: 100%;
  text-align: center;
  width: auto;
  align-items: center;
  min-width: 200px;
}
.btn_primary_default:hover,
.btn_primary_default.active {
  background: var(--button-hover-bg) !important;
  color: var(--button-hover-txt) !important;
  border: 1px solid var(--button-hover-border) !important;
  transform: translateY(-0.1rem);
}

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

.btn-primary-outline {
  background: var(--theme-primary-color) !important;
  color: var(--theme-light-color) !important;
  border: 1px solid var(--theme-light-color) !important;
  border-radius: var(--button-border-radius, 8px);
  font-size: var(--button-font-size, 16px);
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em);
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
  display: block;
  width: 100%;
  text-align: center;
  width: auto;
  min-width: 200px;
}
.btn-primary-outline:hover,
.btn-primary-outline.active {
  background: var(--theme-light-color) !important;
  color: var(--theme-primary-color) !important;
  border: 1px solid var(--theme-primary-color) !important;
}

.btn_primary_default_dark {
  background: var(--theme-dark-color) !important;
  color: var(--theme-light-color) !important;
  border: 1px solid var(--theme-dark-color) !important;
  border-radius: var(--button-border-radius, 8px);
  font-size: var(--button-font-size, 16px);
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em);
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
  display: block;
  width: 100%;
  text-align: center;
  width: auto;
}
.btn_primary_default_dark:hover,
.btn_primary_default_dark.active {
  background: transparent !important;
  color: var(--theme-dark-color) !important;
  border: 1px solid var(--theme-primary-color) !important;
  transform: translateY(-0.1rem);
}

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

.btn-sm {
  padding: 0.25rem 0.75rem !important;
}

/* Navigation Pills */

.nav-pills .nav-item {
  margin-right: 0rem;
  margin-top: 0.5rem;
}

@media (min-width: 991px) {
  .nav-pills .nav-item {
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    width: auto;
  }
}

.nav-pills .nav-link {
  background: var(--button-focus-bg) !important;
  color: var(--button-focus-txt) !important;
  border: 1px solid var(--button-focus-border) !important;
  border-radius: var(--button-border-radius, 8px);
  font-size: var(--button-font-size, 16px);
  text-transform: var(--button-text-transform, uppercase) !important;
  letter-spacing: var(--button-letter-spacing, 0.1em);
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
  display: block;
  width: 100%;
  text-align: center;
  width: auto;
  min-width: 200px;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background: var(--button-bg) !important;
  color: var(--button-txt) !important;
  border: 1px solid var(--button-border) !important;
  border-radius: var(--button-border-radius, 8px);
}

.nav-pills .nav-link:hover:focus {
  background: var(--button-focus-bg) !important;
  color: var(--button-focus-txt) !important;
  border: 1px solid var(--button-focus-border) !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 - contains both nav pills and timezone selector */
#tabs-timezone-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Timezone selector container */
#timezone-selector {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--button-bg) !important;
  color: var(--button-txt) !important;
  border: 1px solid var(--button-border) !important;
  border-radius: var(--button-border-radius);
  font-size: var(--button-font-size);
  text-transform: var(--button-text-transform) !important;
  letter-spacing: var(--button-letter-spacing);
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 400;
  min-width: 200px;
  user-select: none;
  width: auto;
}

#timezone-selector:hover {
  background: var(--button-bg) !important;
  color: var(--button-txt) !important;
  border: 1px solid var(--button-border) !important;
}

#timezone-selector.open {
  background: var(--button-bg) !important;
  color: var(--button-txt) !important;
  border: 1px solid var(--button-border) !important;
}

/* Selected timezone text */
#timezone-selector #selected-timezone {
  margin: 0;
  flex: 1;
  font-family: var(--body-font-family);
  font-size: var(--button-font-size);
  font-weight: 400;
  text-transform: var(--button-text-transform);
  letter-spacing: var(--button-letter-spacing);
}

/* Dropdown arrow */
#timezone-selector i {
  margin-left: 0.5rem;
  font-size: 12px;
  transition: transform 0.3s ease;
  color: currentColor;
}
#timezone-selector svg,
#timezone-selector i,
.dropdown_Button_primary_default svg,
.dropdown_Button_primary_default i  {
  transition: transform 0.5s linear;
}
#timezone-selector.open svg,
#timezone-selector.open i,
.dropdown_Button_primary_default.show svg,
.dropdown_Button_primary_default.show i {
  transform: rotateX(180deg);
}

/* Timezone dropdown menu - use existing dropdown-menu styling */
#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);
  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 items - use existing dropdown-item styling */
#timezone-dropdown p {
  margin: 0;
  padding: 0.3rem 0;
  color: var(--theme-dark-color);
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  font-family: var(--body-font-family);
  font-size: var(--button-font-size);
  border: 0;
  background-color: transparent;
  width: 100%;
  display: block;
}

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

/* Responsive adjustments for timezone selector */
@media (max-width: 991px) {
  #tabs-timezone-wrapper {
    flex-direction:row;
    align-items: stretch;
  }
  
  #timezone-selector {
    align-self: center;
    min-width: 200px;
  }
}

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

/************************************
  Dropdown Button Primary Default Styling
*************************************/

/* Dropdown button primary default - matches timezone selector styling */
.dropdown_Button_primary_default {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--button-bg) !important;
  color: var(--button-txt) !important;
  border: 1px solid var(--button-border) !important;
  border-radius: var(--button-border-radius);
  font-size: var(--button-font-size);
  text-transform: var(--button-text-transform) !important;
  letter-spacing: var(--button-letter-spacing);
  transition: all 0.5s ease;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 400;
  min-width: 200px;
  user-select: none;
  width: auto;
}

.dropdown_Button_primary_default:hover {
  background: var(--button-hover-bg) !important;
  color: var(--button-hover-txt) !important;
  border: 1px solid var(--button-hover-border) !important;
  transform: translateY(-0.1rem);
}

.dropdown_Button_primary_default:focus,
.dropdown_Button_primary_default.show {
  background: var(--button-bg) !important;
  color: var(--button-txt) !important;
  border: 1px solid var(--button-border) !important;
  box-shadow: none;
}

.dropdown_Button_primary_default: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;
}

/* Dropdown button text content */
.dropdown_Button_primary_default .btn-text {
  margin: 0;
  flex: 1;
  font-family: var(--body-font-family);
  font-size: var(--button-font-size);
  font-weight: 400;
  text-transform: var(--button-text-transform);
  letter-spacing: var(--button-letter-spacing);
}

/* Dropdown arrow styling */
.dropdown_Button_primary_default i,
.dropdown_Button_primary_default svg {
  margin-left: 0.5rem;
  font-size: 12px;
  transition: transform 0.3s ease;
  color: currentColor;
}

.dropdown_Button_primary_default svg {
  transition: transform 0.5s linear;
}

.dropdown_Button_primary_default.show svg {
  transform: rotateX(180deg);
}

/* Dropdown menu styling to match timezone dropdown */
.dropdown_Button_primary_default + .dropdown-menu {
  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);
  padding: 1.5rem;
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: max-content;
  min-width: 100%;
  z-index: 1000;
}

/* Dropdown menu items to match timezone dropdown items */
.dropdown_Button_primary_default + .dropdown-menu .dropdown-item,
.dropdown_Button_primary_default + .dropdown-menu .form-check-label,
.dropdown_Button_primary_default + .dropdown-menu p,
.dropdown_Button_primary_default + .dropdown-menu h5 {
  color: var(--theme-dark-color);
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  font-family: var(--body-font-family);
  font-size: var(--button-font-size);
  border: 0;
  background-color: transparent;
  width: 100%;
  display: block;
  text-decoration: none;
}

.dropdown_Button_primary_default + .dropdown-menu .dropdown-item:hover,
.dropdown_Button_primary_default + .dropdown-menu .form-check-label:hover,
.dropdown_Button_primary_default + .dropdown-menu p:hover {
  color: var(--theme-primary-color);
  background: transparent;
  text-decoration: none;
}

/* Form check styling within dropdown */
.dropdown_Button_primary_default + .dropdown-menu .form-check {
  margin-bottom: 0.5rem;
}

.dropdown_Button_primary_default + .dropdown-menu .form-check-input {
  margin-top: 0.125rem;
}

/* Section headers in dropdown */
.dropdown_Button_primary_default + .dropdown-menu h5 {
  color: var(--theme-dark-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 1rem;
  cursor: default;
}

.dropdown_Button_primary_default + .dropdown-menu h5:first-child {
  margin-top: 0;
}

/* Responsive adjustments for dropdown button */
@media (max-width: 991px) {
  .dropdown_Button_primary_default {
    width: auto;
    min-width: auto;
  }
  
  .dropdown_Button_primary_default + .dropdown-menu {
    width: auto;
    min-width: 100%;
  }
}
