@charset "UTF-8";

/* Sidebar Wrapper */
.sidebar-section {
  position: sticky;
  top: 6.5rem;
  z-index: 100;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  max-width: 300px;
}

/* Section Title */
.sidebar-section h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
}

/* General Labels */
.sidebar-section label {
  font-weight: 600;
  color: #333;
}

/* Search Input */
.sidebar-section input[type="search"] {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

/* Buttons */
.sidebar-section button {
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}

.sidebar-section button:hover {
  background: #0056b3;
}

.sidebar-section button:last-child {
  background: #6c757d;
}

.sidebar-section button:last-child:hover {
  background: #5a6268;
}

/* Latest Posts List */
.sidebar-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.sidebar-section ul li {
  margin-bottom: 0.5rem;
}

.sidebar-section ul li a {
  color: #333;
  text-decoration: none;
}

.sidebar-section ul li a:hover {
  color: #007bff;
}

/* Dropdown Style */
.custom-dropdown {
  position: relative;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
}

.custom-dropdown .dropdown-toggle {
  padding: 0.6rem 1rem;
  cursor: pointer;
  user-select: none;
  border-radius: 8px;
  background: #f0f0f0;
  font-size: 1rem;
}

.custom-dropdown .dropdown-toggle::after {
  content: "▼";
  float: right;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.custom-dropdown .dropdown-options {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  max-height: 250px;
  overflow-y: auto;
  width: 100%;
}

.custom-dropdown.open .dropdown-options {
  display: block;
}

/* Checkbox Labels inside dropdown */
.custom-dropdown .dropdown-options .checkbox-option {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.custom-dropdown .dropdown-options .checkbox-option input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.1);
}

.custom-dropdown .dropdown-options .checkbox-option label {
  margin: 0;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 1;
}

.custom-dropdown .dropdown-options .checkbox-option:hover {
  background-color: #f1f1f1;
}

/* Fieldset Styling (optional but improves grouping) */
.sidebar-section fieldset {
  border: none;
  margin-bottom: 1rem;
  padding: 0;
}

.sidebar-section legend {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
}
