/* Right-Side Filter & Search Drawer Component */

/* Filter Backdrop Overlay */
.filter-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.filter-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Right Drawer Panel */
.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 330px;
  max-width: 90vw;
  background: #ffffff;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-drawer.open {
  transform: translateX(0);
}

/* Drawer Header */
.filter-drawer-header {
  background: #0f172a;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary);
}

.filter-drawer-title {
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-filter {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-filter:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* Drawer Body & Sections */
.filter-drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Search input with clear button inside */
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrap input[type="search"] {
  width: 100%;
  height: 32px;
  padding: 0 28px 0 10px;
  font-size: 12.5px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.search-input-wrap input[type="search"]:focus {
  background: #fff;
}

.btn-clear-search {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.btn-clear-search:hover {
  color: var(--danger);
}

.filter-section select {
  width: 100%;
  height: 32px;
  font-size: 12.5px;
  background: #f8fafc;
}

/* Status Filter Vertical List */
.filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
}

.filter-option-item:hover {
  background: #f8fafc;
  border-color: var(--border);
}

.filter-option-item.active {
  background: var(--primary-light);
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #93c5fd;
}

.filter-option-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.filter-option-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.filter-option-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

.filter-option-check {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.filter-option-item.active .filter-option-check {
  opacity: 1;
}

/* Drawer Footer */
.filter-drawer-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
