   /* Core Variables */
   :root {
    --primary: #FED829;
    --secondary: #0041B1;
    --accent: #CE1126;
    --dark: #1A1A2E;
    --light: #F7F7F9;
    --gray: #6E7275;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --transition: all 0.3s ease;
    --text-colot: white;
    --card-bg: white;
    --filter-bg: #eee;
  }

  [data-bs-theme="dark"] {
    --primary: #FED829;
    --secondary: #0041B1;
    --accent: #CE1126;
    --dark: #1A1A2E;
    --light: #F7F7F9;
    --gray: #6E7275;
    --white: rgb(46, 51, 56);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 10px;
    --transition: all 0.3s ease;
    --text-color: white;
    --card-bg: rgb(26, 38, 51);
    --filter-bg: rgb(50, 50, 50);
}
  /* Main layout */
  .search-page-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.filters-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.search-results-container {
    flex-grow: 1;
}

/* Filters styling */
.filter-section {
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.filter-header {
    background-color: var(--secondary);
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-header .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
    color: white;
}

.filter-header span{
    color: white;
}

.filter-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.filter-content {
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.filter-search {
    margin-bottom: 0.75rem;
}

.filter-search input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.filter-option label {
    margin-left: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.filter-option-count {
    background-color: var(--filter-bg);
    font-size: 0.8rem;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    color: #666;
}

.date-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.date-range input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.search-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-toggle button {
    background-color: var(--gray);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle button.active {
    background-color: #0041B1;
    color: white;
    border-color: #0041B1;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

/* Results list view */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Results list view */
.publication-item {
    margin-bottom: 2rem;
}

/* Index Terms Tags Styling */
.publication-tags {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--primary);
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #666;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: #e0e0e0;
    color: #333;
}

.search-pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination-button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.pagination-button.active {
    background-color: #0041B1;
    color: white;
    border-color: #0041B1;
}

.pagination-button:hover:not(.active) {
    background-color: #f5f5f5;
}

/* Applied filters */
.applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-tag {
    background-color: #0041B1;
    color: white;
    border-radius: 16px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tag-remove {
    cursor: pointer;
    font-weight: bold;
}

.clear-all-filters {
    color: #0041B1;
    font-size: 0.75rem;
    text-decoration: underline;
    cursor: pointer;
}