﻿/* Top bar container */
.top-bar {
    display: flex;
    gap:0.5rem;
    align-items: center;
    margin: 1rem;
    justify-content: space-between;
    padding: 0.6rem 1rem 0.6rem 1.3rem;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    border-radius: 2rem;
    overflow-x:auto;
    overflow-y:hidden;
    box-shadow: 1px 1px 15px rgba(0,0,0,0.3);
    flex-wrap: nowrap;
}
    .top-bar.span-page {
        position: static;
        margin: 1rem 0.5rem;
        display: none;
    }
.top-bar-container {
    position: sticky;
    top: 1rem;
    margin: auto;
    max-width: 1800px;
    z-index: 10;
}

/* Actions section */
.top-bar-actions {
    display: flex;
    flex:1 1 auto;
    align-items: center;
    justify-content:flex-end;
    gap: 0.5rem;
}
.buttons{
    display:flex;
    flex: 0 1 auto;
    display: flex;
    gap: 0.5rem;
}
.buttons .button{
    flex: 0 1 auto;
}
.top-bar-group {
    gap: 0.3rem;
    display: flex;
    align-items:center;
    flex: 1 1 auto;
}

/* Buttons */
.button {
    flex: 0 1 auto;
    padding: 0.5rem 2rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f13e3e;
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button img{
    height:1.5rem;
}
.button.car-list{
    background:gray;
}
.top-bar-separator{
    height:1rem;
    width: 1px;
    margin:0 0.5rem;
    background: #999;
}
.top-bar.span-page .button {
    flex: 0.5 1 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    width:unset;
    max-width: 7rem;
}
/* Hover state */
.button:hover {
    background: #d93636;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    /* Active (click) state */
    .button:active {
        transform: scale(0.95);
        background: #c22e2e;
    }


/* Terminal button bubble */
.bubble-button {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 2rem;
    height: 2.5rem;
    width: 2.5rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    filter: invert(80%);
}
.top-bar.span-page .bubble-button {
    flex:1 0 auto;
    aspect-ratio:auto;
}
.top-bar.span-page .bubble-button.split-screen {
    flex: 1 1 auto;
    max-width:2.5rem;
}
.top-bar.span-page .top-bar-actions {
    flex: 1 0 auto;
}
.top-bar.span-page .bubble-button.menu-switch {
    flex: 0 0 auto;
    width: 2.5rem;
}

    .bubble-button:hover {
        background-color: #e0e0e0;
    }

    .bubble-button img {
        width: 1.2rem;
        height: 1.2rem;
    }
    .bubble-button.active {
        filter: none;
        border: solid 1px black;
    }

.data-age {
    display: flex;
    align-items: center;
    justify-content:center;
    flex-wrap: wrap; /* ✅ allows wrapping on narrow screens */
    gap: 0.25rem;
    margin: 0 0.5rem;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.data-age-label {
    color: #666; /* gray label text */
    font-weight: 500;
    white-space: nowrap;
}

.data-age-value {
    color: #222; /* black value text */
    font-weight: 600;
    min-width: 2rem;
    word-break: keep-all; 
    text-wrap:nowrap;
}

@media (max-width: 1000px) {
    .top-bar {
        display: none;
    }

        .top-bar.span-page {
            display: flex;
            margin-bottom: -2rem;
            gap: 0.0rem;
            position: sticky;
            z-index: 10;
        }
}
