/* Custom combobox + dark dropdowns for Qt WebEngine / desktop client */

select.fp-combo-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0, 0, 0, 0);
}

.fp-combo {
  position: relative;
  display: block;
  width: 100%;
}

.fp-combo-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: #0f1a2e;
  border: 1px solid #26344a;
  border-radius: 10px;
  color: #e2e8f0;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  line-height: 1.2;
  box-shadow: none;
}

.fp-combo.is-sm .fp-combo-toggle {
  min-height: 34px;
  font-size: 13px;
  border-radius: 8px;
}

.fp-combo-toggle:hover,
.fp-combo.is-open .fp-combo-toggle {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
}

.fp-combo.is-disabled .fp-combo-toggle {
  opacity: 0.6;
  cursor: not-allowed;
}

.fp-combo-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-combo-caret {
  color: #94a3b8;
  font-size: 11px;
  flex: 0 0 auto;
}

.fp-combo-menu {
  position: fixed;
  z-index: 4000;
  display: none;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  background: #111a2b;
  border: 1px solid #26344a;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.fp-combo-menu.is-open {
  display: block;
}

.fp-combo-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.fp-combo-option:hover,
.fp-combo-option.is-active {
  background: rgba(16, 185, 129, 0.16);
  color: #ffffff;
}

.fp-combo-option.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.fp-switch-group .fp-combo {
  width: auto;
}

.fp-switch-game .fp-combo {
  width: 120px;
}

.fp-switch-season .fp-combo {
  width: 310px;
}

.fp-switch-group .fp-combo-toggle {
  min-height: 34px;
  height: 34px;
  padding: 0 26px 0 32px;
  font-size: 0.8rem;
  border-radius: 6px;
  background: #0f1a2e;
}

.fp-switch-game .fp-combo-toggle {
  border-color: rgba(16, 185, 129, 0.34);
}

.fp-switch-season .fp-combo-toggle {
  border-color: rgba(6, 182, 212, 0.3);
}

.fp-select-field .fp-combo {
  min-width: 280px;
}

body.dark-mode .dropdown-menu,
.dropdown-menu {
  background: #111a2b !important;
  color: #e2e8f0 !important;
  border: 1px solid #26344a !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42) !important;
  padding: 6px !important;
}

body.dark-mode .dropdown-item,
.dropdown-item {
  color: #e2e8f0 !important;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus,
body.dark-mode .dropdown-item.active,
body.dark-mode .dropdown-item:active,
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #ffffff !important;
}

body.dark-mode .dropdown-divider,
.dropdown-divider {
  border-top-color: #26344a !important;
}

body.dark-mode .btn-outline-info,
.btn-outline-info {
  color: #e2e8f0;
  background: #0f1a2e;
  border-color: #26344a;
}

body.dark-mode .btn-outline-info:hover,
body.dark-mode .btn-outline-info:focus,
body.dark-mode .btn-outline-info:not(:disabled):not(.disabled).active,
body.dark-mode .btn-outline-info:not(:disabled):not(.disabled):active {
  color: #ffffff;
  background: rgba(16, 185, 129, 0.10);
  border-color: #10b981;
}

.fp-bop-track-btn,
.fp-bop-car-btn,
.fp-record-car-btn {
  background: #0f1a2e !important;
  border: 1px solid #26344a !important;
  color: #e2e8f0 !important;
  border-radius: 10px !important;
}

.fp-bop-track-btn:hover,
.fp-bop-car-btn:hover,
.fp-record-car-btn:hover,
.fp-bop-track-btn[aria-expanded="true"],
.fp-bop-car-btn[aria-expanded="true"] {
  border-color: #10b981 !important;
  background: rgba(16, 185, 129, 0.10) !important;
  color: #ffffff !important;
}

select.form-control,
select.custom-select,
body.dark-mode select.form-control,
body.dark-mode select.custom-select {
  background-color: #0f1a2e;
  border-color: #26344a;
  color: #e2e8f0;
  border-radius: 10px;
}

select.form-control option,
select.custom-select option {
  background-color: #111a2b;
  color: #e2e8f0;
}
