.glass-panel {
    background: var(--glass-bg) !important;
    /* Backdrop-filter removed to increase rendering speed */
    border: 1px solid var(--glass-border) !important;
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
}

.box-title {
    display: block; 
    font-weight: 800; 
    font-size: 0.9rem; 
    padding-left: 10px;
    border-left: 3px solid var(--purple); 
    margin-bottom: 20px; 
    text-transform: uppercase;
}

.btn-time {
    border: 1px solid var(--glass-border); 
    background: var(--glass-bg);
    color: var(--text); 
    padding: 5px 15px; 
    border-radius: 8px; 
    font-size: 0.8rem; 
    font-weight: 600;
    transition: background 0.2s, color 0.2s; /* Specified properties for better perf */
}

.btn-time:hover { 
    background: var(--header-accent); /* Use a solid light accent instead of rgba transparency */
}

.btn-time.active { 
    background: var(--blue); 
    color: white; 
}

.search-dropdown {
    position: relative;
    min-width: 220px;
}

.search-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 3000; 
    margin-top: 8px;
    padding: 10px;
    background: var(--glass-bg); /* Use solid variable defined in File 1 */
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: visible; 
}

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

.search-input-box {
    width: 100%;
    /* Solid backgrounds are faster than rgba(0,0,0,0.1) on scroll */
    background: var(--header-accent);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    outline: none;
}

body.dark-mode .search-input-box { 
    background: #0b0e11; /* Match the dark-mode body color */
}

.coin-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.coin-item {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
}

.coin-item:hover { 
    background: var(--blue); 
    color: white; 
}

.coin-item .ticker { 
    opacity: 0.6; 
    font-family: 'JetBrains Mono', monospace; 
}

/* Style for the container while loading */
.search-dropdown-container.is-loading {
    opacity: 0.6;
    pointer-events: none; 
    cursor: wait;
}

/* Optional: Add a small spinner icon to the label */
.search-dropdown-container.is-loading .js-selected-coin-label::after {
    content: " ⌛";
    font-size: 12px;
}

/* Highlight the selected item in the list */
.coin-item.is-selected {
    background-color: var(--primary-bg-light, #f3f4f6); 
    font-weight: bold;
    border-left: 3px solid #2563eb;
}

/* Highlight the selected item in the list */
.dark-mode .coin-item.is-selected {
    background-color: #2d3748; /* Solid dark color */
    font-weight: bold;
    border-left: 3px solid #3b82f6; 
}