/**
 * Sidebar Styles
 *
 * Styles for the application sidebar including:
 * - Jump To search functionality
 * - Quota menu display
 */

/* ===================================================================
   SIDEBAR SEARCH (Jump To)
   Bootstrap utilities in template: .mb-2 .rounded .overflow-hidden .small
   =================================================================== */

.jump-to-search .form-control,
.jump-to-search .input-group-text {
    border-color: var(--border-color);
}

/* Sidebar Search Dropdown */
.sidebar-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 6px rgba(var(--bs-black-rgb), 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    margin-top: -1px;
}

.sidebar-search-dropdown.show {
    display: block;
}

.search-section {
    padding: 0.5rem 0;
}

/* Bootstrap utilities in JS: .fw-semibold .small .text-uppercase .text-muted */
.search-section-header {
    letter-spacing: 0.05em;
    padding: 0.5rem 0.75rem 0.25rem;
}

/* Bootstrap utilities in JS: .text-dark */
.search-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
}

.search-item:hover,
.search-item.active {
    background-color: var(--bg-light);
}

.search-item i {
    color: var(--bs-primary);
    flex-shrink: 0;
    width: 20px;
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
/* Bootstrap utilities in JS: .fw-normal */
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-context {
/* Bootstrap utilities in JS: .small .text-muted */
    margin-top: 0.125rem;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-no-results {
/* Bootstrap utilities in JS: .text-center .text-muted */
    padding: 1rem 0.75rem;
}

/* ========== Quota Menu ========== */
/* Bootstrap utilities in template: .text-muted .small .rounded */
#quota-menu {
    padding-bottom: 16px;
}

.quota-item {
    padding: 0.5rem 0.75rem;
    transition: background-color 0.2s ease;
    cursor: default;
}

.quota-item:hover {
    background-color: rgba(var(--bs-black-rgb), 0.05);
}

/* Upgrade link styling */
a.quota-item {
    cursor: pointer;
}

a.quota-item:hover {
    background-color: rgba(var(--blue-primary-rgb), 0.1);
}
