/* Top bar - shared header and tray styles for all top-bar widgets */

/* Header - non-scrolling bar at top. The scrolling .content below uses
   --pad-x-with-scrollbar on the right, so both align at panel_width - pad-x. */
.top-bar .header {
    padding: 15px var(--pad-x);
    min-height: 77.5px;
    box-sizing: border-box;
    background-color: #fff;
}

/* Tray - overlay that covers the content area below the top-bar.
   Scrollbar styling comes from .thin-scroll (applied in HTML). */
.top-bar .tray {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    z-index: 5;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 0 var(--pad-x-with-scrollbar) 0 var(--pad-x);
}

/* Standard input bar - bordered box with grid layout */
.top-bar .input-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px 10px;
    min-height: 47.5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-bar .input-bar:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.top-bar .input-bar input {
    border: none;
    outline: none;
    padding: 0;
    font-size: 1rem;
    background: transparent;
}

.top-bar .input-bar input::placeholder {
    color: #999;
}

