/* ========================================================================= */
/* Custom Select Dropdowns */
/* ========================================================================= */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  min-width: 160px;
  font-family: inherit;
}
.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-0);
  transition: all var(--dur-fast) var(--ease);
}
.custom-select-trigger:hover {
  border-color: var(--accent-1);
  background: var(--bg-2);
}
.custom-select-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--accent-1);
}
.custom-select-wrapper.open .custom-select-trigger svg {
  transform: rotate(180deg);
}
.custom-select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all var(--dur-fast) var(--ease);
  max-height: 250px;
  overflow-y: auto;
}
.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-option {
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
  color: var(--text-0);
}
.custom-option:hover {
  background: var(--bg-2);
}
.custom-option.selected {
  background: var(--accent-1);
  color: white;
}

/* ========================================================================= */
/* Custom Date Picker */
/* ========================================================================= */
.custom-date-wrapper {
  position: relative;
  width: 100%;
}
.custom-date-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-0);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}
.custom-date-input:focus {
  border-color: var(--accent-1);
  outline: none;
}
.custom-date-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  z-index: 200;
  width: 250px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all var(--dur-fast) var(--ease);
}
.custom-date-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.date-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.date-header button {
  background: none;
  border: none;
  color: var(--text-0);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.date-header button:hover {
  background: var(--bg-2);
}
.date-header button svg {
  width: 16px;
  height: 16px;
}
.date-month-display {
  font-size: 14px;
  font-weight: 600;
}
.date-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.date-day-name {
  text-align: center;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 4px;
}
.date-day {
  text-align: center;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text-0);
  transition: all var(--dur-fast) var(--ease);
}
.date-day:not(.empty):hover {
  background: var(--bg-2);
}
.date-day.today {
  color: var(--accent-1);
  font-weight: bold;
}
.date-day.selected {
  background: var(--accent-1);
  color: white;
}
.date-day.empty {
  cursor: default;
}

/* Multi-select styling */
.card.selected {
  border-left-width: 4px;
  border-left-color: var(--accent-1) !important;
  background: var(--bg-2);
}
.drag-multi-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--accent-1);
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

/* CSS to size and align the logo: */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-logo {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand small {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
}
