/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Dropdown Container */
.dropdown-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 0px;
  width: 370px;
  background: #ffffff;
  box-shadow: 0px 0px 4px 0px #1414141a, 0px 8px 15px 0px #1414141f;
  border-radius: 6px;
}

/* Dropdown Header */
.dropdown-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px 8px 22px;
  gap: 5px;
  width: 370px;
  height: 42px;
  background: #ffffff;
}

/* Labels */
.dropdown-label,
.page-label {
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  display: flex;
  align-items: center;
  color: #1f2128;
}

/* Divider */
.dropdown-divider {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 10px 15px;
  gap: 10px;
  width: 370px;
  height: 20px;
}

.divider-line {
  width: 330px;
  height: 0px;
  border-top: 0.7px solid #cdcdcd;
}

/* Pages List - Scrollable */
.pages-list {
  width: 370px;
  max-height: 168px;
  overflow-y: auto;
  background: #ffffff;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Hide Scrollbar */
.pages-list::-webkit-scrollbar {
  display: none;
}

/* Page Item */
.page-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px 8px 22px;
  gap: 5px;
  width: 370px;
  height: 42px;
  background: #ffffff;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
  width: 23px;
  height: 23px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Custom checkbox - using default marker */
.custom-checkbox {
  position: relative;
  cursor: pointer;
  width: 23px;
  height: 23px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff;
  border: 1px solid #cdcdcd;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.custom-checkbox:hover {
  border-color: #bdbdbd;
}

/* Show checkmark preview on hover (unchecked) */
.custom-checkbox:not(:checked):hover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 14px;
  border: solid #e3e3e3;
  border-width: 0 1px 1px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

.custom-checkbox:focus {
  border-color: #bdbdbd;
  outline: none;
}

/* Active state (mousedown but not released) */
.custom-checkbox:not(:checked):active {
  background: #ffffff;
  border-color: #cdcdcd;
}

.custom-checkbox:not(:checked):active::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 14px;
  border: solid #878787;
  border-width: 0 1px 1px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

/* Checked state (released) */
.custom-checkbox:checked {
  background: #2469f6;
  border-color: #2469f6;
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 14px;
  border: solid #ffffff;
  border-width: 0 1px 1px 0;
  transform: translate(-50%, -60%) rotate(45deg);
}

/* Checked + hover */
.custom-checkbox:checked:hover {
  background: #5087f8;
  border-color: #5087f8;
}

/* Button Container */
.button-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 15px 20px;
  gap: 10px;
  width: 370px;
  background: #ffffff;
}

/* Done Button */
.done-button {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  gap: 10px;
  width: 340px;
  height: 40px;
  background: #ffce22;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: #1f2128;
  transition: background-color 0.15s ease;
}

/* Done Button Hover State */
.done-button:hover {
  background: #ffd84d;
}

/* Done Button Active/Pressed State */
.done-button:active {
  background: #ffce22;
}

/* Done Button Focus State */
.done-button:focus {
  outline: none;
}
