.dropdown-menu {
  padding: 5px;
  box-shadow: 0px 10px 15px -3px #1717171a;

  .dropdown-item {
    padding: 8px 30px 8px 10px;
    position: relative;
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;

    .form-check-input[type="checkbox"] {
      margin-top: 0;
    }

    .txt {
      font-size: 15px;
    }
  }

  .dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--black);
    border-radius: 5px;
  }
}

/* Dropdown Menu Card */
.dropdown-wrapper {
  .badge-count {
    opacity: 0;
    transition: all 0.2s ease-in-out;
  }

  &.drop-full {
    display: block;

    .dropdown-card {
      width: 100%;
    }

    .dropdown-btn {
      width: 100%;
      display: flex;
      justify-content: space-between;
      height: 40px;
    }
  }

  .dropdown-btn {
    background-color: var(--light-gray);
    border: 1px solid #e5e5e5;

    &:hover {
      border-color: #e5e5e5;
    }
  }

  &.drop-designer {
    .dropdown-card {
      width: 270px;
    }

    .option-item {
      justify-content: space-between;
    }
  }

  .dropdown-card {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 170px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    padding: 12px;
    display: none;
    z-index: 9999;

    &.is-active {
      display: block !important;
    }

    /* Search Box */
    .search-box {
      background-color: #f8f9fa;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      display: flex;
      align-items: center;
      padding: 0 10px;
      height: 36px;
      margin-bottom: 8px;
    }

    .search-box i {
      color: #94a3b8;
    }

    .search-box input {
      border: none;
      background: transparent;
      outline: none;
      width: 100%;
      margin-left: 8px;
      font-size: 13px;
    }

    /* Options List */
    .option-list {
      list-style: none;
      padding: 0;
      margin: 0 0 10px 0;
      max-height: 300px;
      overflow-y: auto;
    }

    .option-item {
      display: flex;
      align-items: center;
      padding: 8px;
      border-radius: 6px;
      cursor: pointer;
      transition: background-color 0.15s ease;
      gap: 8px;

      .box-name {
        display: flex;
        gap: 8px;
        align-items: center;
      }
    }

    .option-item:hover {
      background-color: #f8f9fa;
    }

    .item-info {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .item-info img {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      object-fit: cover;
    }

    .item-name {
      font-size: 13px;
      color: #334155;
    }

    /* Custom Checkbox Design (Direct Checkbox Element) */
    .option-item .check-input {
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
      width: 18px;
      height: 18px;
      background-color: #ffffff;
      border: 1.5px solid #d0d5dd;
      border-radius: 5px;
      cursor: pointer;
      position: relative;
      outline: none;
      transition: all 0.2s ease-in-out;
      margin: 0;
      flex-shrink: 0;
    }

    .option-item .check-input:hover {
      border-color: #98a2b3;
    }

    .option-item .check-input:checked {
      background-color: #0d1117;
      border-color: #0d1117;
    }

    .option-item .check-input:checked::after {
      content: "";
      position: absolute;
      left: 6px;
      top: 2px;
      width: 4px;
      height: 8px;
      border: solid #ffffff;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    /* Action Footer */
    .action-footer {
      display: flex;
      gap: 8px;
    }

    .btn-clear,
    .btn-select {
      flex: 1;
      padding: 8px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .btn-clear {
      background-color: #f1f5f9;
      color: #475569;
    }

    .btn-clear:hover {
      background-color: #e2e8f0;
    }

    .btn-select {
      background-color: #0d1117;
      color: #ffffff;
    }

    .btn-select:hover {
      background-color: #1a202c;
    }
  }
}

/* ===================================================
       1. DROPDOWN SINGLE CONTAINER
    =================================================== */
.dropdown-single {
  position: relative;
  display: inline-block;
  user-select: none;
}

/* Trigger Button */
.dropdown-single .dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background-color: var(--light-gray);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  line-height: 20px;
}

.dropdown-single .dropdown-label {
  color: #4b5563;
  font-weight: 400;
}

.dropdown-single .dropdown-value {
  font-weight: 500;
}

/* ---------------------------------------------------
       2. LINEICONS CHEVRON ICON & ROTATION ON OPEN
    --------------------------------------------------- */
.dropdown-single .chevron-icon {
  font-size: 12px;
  color: #4b5563;
  margin-left: 2px;
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Rotate 180deg when menu is open */
.dropdown-single.is-open .chevron-icon {
  transform: rotate(180deg);
}

/* ---------------------------------------------------
       3. MENU & LIST (UNIFORM DARK GREY TEXT COLOR)
    --------------------------------------------------- */
.dropdown-single .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 170px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 100;
  border: 1px solid #e5e7eb;
}

.dropdown-single .dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s;
  margin: 0;
}

.dropdown-single .dropdown-item:hover {
  background-color: #f9fafb;
}

/* Hide default checkbox */
.dropdown-single .real-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ---------------------------------------------------
       4. SQUARE CHECKBOX (BLACK BACKGROUND - WHITE TICK)
    --------------------------------------------------- */
.dropdown-single .item-check {
  width: 18px;
  height: 18px;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  background-color: #ffffff;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

/* Checked State */
.dropdown-single .real-checkbox:checked+.item-check {
  background-color: #000000;
  border-color: #000000;
}

.dropdown-single .real-checkbox:checked+.item-check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------------------------------------------------
       5. ACCENT COLORS (APPLIED ONLY TO TRIGGER BUTTON)
    --------------------------------------------------- */
.text-confirmed {
  color: #ea580c;
}

.text-finished {
  color: #10b981;
}

.text-booked {
  color: #3b82f6;
}

.text-rejected {
  color: #dc2626;
}

.text-confirming {
  color: #f59e0b;
}

.text-dark {
  color: #374151;
}

.action-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.action-footer .btn-done {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #0d1117;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.action-footer .btn-done:hover {
  background-color: #1f2937;
}