:root {
    --border-color: rgb(190, 190, 190);
    --background-color: rgb(255, 255, 255);
}

body.wait,
body.wait:hover,
body.wait table:hover,
body.wait tr:hover,
body.wait td:hover,
body.wait a:hover,
body.wait span:hover,
body.wait div:hover,
body.wait input:hover {
  cursor: wait !important;
}

.row-window-height {
  height: 100vh;
}

.column {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.navigation a { 
    font-size: 1.5em;
    margin: 0 1em;
}

@media (max-width: 576px) {
  .py-sm-1 {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  input#search_vin {
    /* width: 300px; */
  }
}

#filter-options {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

@media screen and (max-width: 992px) {
  #filter-options {
    width: 90% !important;
    margin:0 auto;
  }

  .constrained-filter {
    max-height: 350px;
    height:auto !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    padding-bottom: 5px;
  }
}

.constrained-filter {
  height: 450px;
  overflow-y: auto;
  position: relative;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
}

.filter-options .constrained-filter:last-of-type {
  border-right: 0;
}


.constrained-filter h5.filter {
  position: sticky;
  background: linear-gradient(to bottom, white 90%, rgba(255, 255, 255, 0) 100%);
  padding: 10px 0;
  top: 0;
  z-index: 10;
}

.constrained-filter h5 ~ input {
    position: sticky;
    z-index: 10;
    top: 52px;
    /* background: linear-gradient(to bottom, white 50%, rgba(255, 255, 255, 0) 100%); */
    background-color: #fff;
}

.constrained-filter h5.filter-below {
    position: sticky;
      padding: 10px 0;
      background-color: #fff;
      top: 0;
      z-index: 10;
}

.constrained-filter h5.filter-below::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  width: 100%;
  height: 20px;
  /* Height of the fade effect */
  background: white;
  /* Fade from transparent to white */
  z-index: 1;
  /* Ensure the fade is above the content but below the actual header */
}

.indent {
  margin-left: 25px;
  padding-left: 32px;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 0 !important;
  padding-bottom: .125rem;
}

/* Country selector text truncation */
.constrained-filter .item.text-truncate.form-check {
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.constrained-filter .item.text-truncate.form-check .form-check-input {
  flex-shrink: 0;
  margin-top: 0.25em;
}

.constrained-filter .item.text-truncate.form-check .form-check-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  margin-left: 0.5em;
}

/* 3 Way Switch UI Control */

#collapse-control a {
  line-height: 0px;
  padding: 4px;
  text-decoration: none;
}

#collapse-control a:nth-of-type(1),
#collapse-control a:nth-of-type(2) {
 visibility: visible;
}

#collapse-control a:nth-of-type(3),
#collapse-control a:nth-of-type(4) {
  visibility: hidden;
}

#collapse-control a.collapsed:nth-of-type(1),
#collapse-control a.collapsed:nth-of-type(2) {
 visibility: hidden;
}

#collapse-control a.collapsed:nth-of-type(3),
#collapse-control a.collapsed:nth-of-type(4) {
 visibility: visible;
}


/* 3 Way Switch UI Control */

.three-way-switch {
  /* background: #95A5A6; */
  display: inline-block;
  /* padding: 2px 3px; */
  border-radius: 2em;
  position: relative;
  border: 1px solid rgb(222, 226, 230);
  line-height: 14px !important;
  cursor: pointer;
}

.three-way-switch label {
  text-align: center;
  font-family: sans-serif;
  display: inline-block;
  color: rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
  /* margin: 0 4px 0 0; */
  text-align: center;
  padding: 0px 4px;
  font-size: 12px;
  width: 14px;
  top: -0.5px;
  cursor: pointer;
}


.three-way-switch:has(input:disabled) {
  border-color: rgba(0, 0, 0, 0.07);
  cursor: not-allowed !important;
}

.three-way-switch input:disabled {
  cursor: not-allowed !important;
}

.three-way-switch input:disabled + label {
  color: rgba(0, 0, 0, 0.07);
  cursor: not-allowed !important;
}

.three-way-switch input[value="default"]:checked:disabled~span {
  background: rgba(0, 0, 0, 0.07);
}

.three-way-switch label:last-of-type {
  left: -4px;
}

.three-way-switch input {
  /* display: none; */
  position: absolute;
  z-index: 3;
  opacity: 0;
  cursor: pointer;
}

.three-way-switch span {
  height: 14px;
  width: 14px;
  line-height: 14px;
  border-radius: 50%;
  background: #fff;
  display: block;
  position: absolute;
  left: 22px;
  top: 1px;
  transition: all 0.15s ease-in-out;
}

.three-way-switch input[value="include"]:checked~span {

  background: #27ae60;
  left: 2px;
  color: #fff;
}

.three-way-switch input[value="exclude"]:checked~span {
  background: #e74c3c;
  left: 34px;
}

.three-way-switch input[value="default"]:checked~span {
  /* background: rgb(222, 226, 230); */
  background: rgba(0, 0, 0, 0.25);
  left: 18px;
}

.three-way-switch input[value="include"]:checked+label,
.three-way-switch input[value="default"]:checked+label,
.three-way-switch input[value="exclude"]:checked+label {
  color: #fff;
}

/* ==========================================
   Authentication Modal Styles
   ========================================== */

.auth-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-modal-content {
  background: white;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #333;
}

.auth-modal-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.auth-modal-button {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.auth-modal-button:active:not(:disabled) {
  transform: translateY(0);
}

.auth-modal-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.auth-modal-error {
  display: none;
  color: #dc3545;
  font-size: 14px;
  margin-top: 16px;
  padding: 12px;
  background: #f8d7da;
  border-radius: 8px;
  border: 1px solid #f5c6cb;
  text-align: left;
}

.auth-modal-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}