/* ==========================================================================
   ALUMINIUMGLASS.CO.IN
   PUBLIC MARKETPLACE
   Component: Topbar
   File:
   /home/jqkmqvml/public_html/assets/css/components/topbar.css

   IMPORTANT:
   --------------------------------------------------------------------------
   This file contains PRESENTATION ONLY.

   NO:
   - fake marketplace data
   - demo vendors
   - sample businesses
   - hardcoded products
   - hardcoded services
   - fake locations
   - fake enquiry/lead counts
   - fake user/vendor names
   - fake package/plan data
   - database records

   All dynamic data must come from:
   Frontend JS
       ↓
   Backend API
       ↓
   Controller
       ↓
   Service
       ↓
   Repository
       ↓
   Database
   ========================================================================== */


/* ==========================================================================
   1. TOPBAR ROOT
   ========================================================================== */

.site-topbar,
.topbar,
[data-component="topbar"] {
    position: relative;
    width: 100%;
    min-width: 0;

    background: var(
        --topbar-bg,
        var(--header-bg, #ffffff)
    );

    color: var(
        --topbar-text,
        var(--text-color, #1f2937)
    );

    border-bottom: 1px solid var(
        --topbar-border,
        var(--border-color, #e5e7eb)
    );

    font-size: var(
        --topbar-font-size,
        0.875rem
    );

    line-height: 1.4;

    z-index: var(
        --topbar-z-index,
        1000
    );
}


/* ==========================================================================
   2. TOPBAR INNER CONTAINER
   ========================================================================== */

.site-topbar__inner,
.topbar__inner {
    width: min(
        100%,
        var(--container-max-width, 1440px)
    );

    min-height: var(
        --topbar-min-height,
        38px
    );

    margin-inline: auto;

    padding-inline: var(
        --container-padding,
        16px
    );

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: var(
        --topbar-gap,
        12px
    );

    min-width: 0;
}


/* ==========================================================================
   3. LEFT / RIGHT GROUPS
   ========================================================================== */

.site-topbar__left,
.site-topbar__right,
.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;

    gap: var(
        --topbar-item-gap,
        10px
    );

    min-width: 0;
}


/* Prevent flex children from forcing horizontal overflow. */

.site-topbar__left > *,
.site-topbar__right > *,
.topbar__left > *,
.topbar__right > * {
    min-width: 0;
}


/* ==========================================================================
   4. TOPBAR GROUP
   ========================================================================== */

.site-topbar__group,
.topbar__group {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    gap: var(
        --topbar-group-gap,
        6px
    );
}


/* ==========================================================================
   5. TOPBAR ITEM
   ========================================================================== */

.site-topbar__item,
.topbar__item {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    color: inherit;

    white-space: nowrap;
}


/* ==========================================================================
   6. TOPBAR LINKS
   ========================================================================== */

.site-topbar a,
.topbar a {
    color: var(
        --topbar-link-color,
        inherit
    );

    text-decoration: none;

    transition:
        color 160ms ease,
        background-color 160ms ease,
        opacity 160ms ease;
}


.site-topbar a:hover,
.topbar a:hover {
    color: var(
        --topbar-link-hover-color,
        var(--primary-color, #2563eb)
    );
}


.site-topbar a:focus-visible,
.topbar a:focus-visible {
    outline: 2px solid var(
        --focus-color,
        #2563eb
    );

    outline-offset: 2px;

    border-radius: var(
        --topbar-focus-radius,
        4px
    );
}


/* ==========================================================================
   7. LOCATION LINK / LOCATION STATUS
   ========================================================================== */

.site-topbar__location,
.topbar__location {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    max-width: min(
        42vw,
        420px
    );

    gap: 6px;
}


.site-topbar__location-trigger,
.topbar__location-trigger {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    max-width: 100%;

    padding: 4px 6px;

    border: 0;
    background: transparent;

    color: inherit;

    font: inherit;
    text-align: start;

    cursor: pointer;

    border-radius: var(
        --control-radius,
        6px
    );

    transition:
        background-color 160ms ease,
        color 160ms ease;
}


.site-topbar__location-trigger:hover,
.topbar__location-trigger:hover {
    background: var(
        --topbar-hover-bg,
        rgba(37, 99, 235, 0.06)
    );

    color: var(
        --primary-color,
        #2563eb
    );
}


.site-topbar__location-trigger:focus-visible,
.topbar__location-trigger:focus-visible {
    outline: 2px solid var(
        --focus-color,
        #2563eb
    );

    outline-offset: 2px;
}


/* Location icon slot. */

.site-topbar__location-icon,
.topbar__location-icon {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: currentColor;
}


/* Dynamic location value. */

.site-topbar__location-value,
.topbar__location-value {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/* ==========================================================================
   8. HELP / SUPPORT
   ========================================================================== */

.site-topbar__help,
.topbar__help {
    display: inline-flex;
    align-items: center;

    min-width: 0;
}


.site-topbar__help-link,
.topbar__help-link {
    display: inline-flex;
    align-items: center;

    min-height: 28px;

    padding: 4px 6px;

    border-radius: var(
        --control-radius,
        6px
    );
}


.site-topbar__help-link:hover,
.topbar__help-link:hover {
    background: var(
        --topbar-hover-bg,
        rgba(37, 99, 235, 0.06)
    );
}


/* ==========================================================================
   9. LIST YOUR BUSINESS CTA
   ========================================================================== */

.site-topbar__business-cta,
.topbar__business-cta {
    display: inline-flex;
    align-items: center;
}


.site-topbar__business-link,
.topbar__business-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 5px 10px;

    border: 1px solid var(
        --topbar-cta-border,
        var(--primary-color, #2563eb)
    );

    border-radius: var(
        --button-radius,
        6px
    );

    background: var(
        --topbar-cta-bg,
        transparent
    );

    color: var(
        --topbar-cta-color,
        var(--primary-color, #2563eb)
    ) !important;

    font-weight: 600;

    white-space: nowrap;
}


.site-topbar__business-link:hover,
.topbar__business-link:hover {
    background: var(
        --topbar-cta-hover-bg,
        var(--primary-color, #2563eb)
    );

    color: var(
        --topbar-cta-hover-color,
        #ffffff
    ) !important;
}


/* ==========================================================================
   10. AUTH / ACCOUNT AREA
   ========================================================================== */

.site-topbar__auth,
.topbar__auth {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    gap: 6px;
}


.site-topbar__auth-link,
.topbar__auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding: 4px 7px;

    border-radius: var(
        --control-radius,
        6px
    );

    font-weight: 500;
}


.site-topbar__auth-link:hover,
.topbar__auth-link:hover {
    background: var(
        --topbar-hover-bg,
        rgba(37, 99, 235, 0.06)
    );
}


/* Separator between auth actions, if markup provides one. */

.site-topbar__separator,
.topbar__separator {
    width: 1px;
    height: 18px;

    flex: 0 0 auto;

    background: var(
        --topbar-separator,
        var(--border-color, #e5e7eb)
    );
}


/* ==========================================================================
   11. LANGUAGE SELECTOR
   ========================================================================== */

.site-topbar__language,
.topbar__language {
    display: inline-flex;
    align-items: center;

    min-width: 0;
}


.site-topbar__language select,
.topbar__language select {
    min-height: 28px;

    padding: 3px 24px 3px 7px;

    border: 1px solid transparent;

    border-radius: var(
        --control-radius,
        6px
    );

    background: transparent;

    color: inherit;

    font: inherit;

    cursor: pointer;

    max-width: 160px;
}


.site-topbar__language select:hover,
.topbar__language select:hover {
    background: var(
        --topbar-hover-bg,
        rgba(37, 99, 235, 0.06)
    );
}


.site-topbar__language select:focus-visible,
.topbar__language select:focus-visible {
    outline: 2px solid var(
        --focus-color,
        #2563eb
    );

    outline-offset: 1px;
}


/* ==========================================================================
   12. LIVE STATUS / SYSTEM STATUS
   ========================================================================== */

.site-topbar__status,
.topbar__status {
    display: inline-flex;
    align-items: center;

    min-width: 0;

    gap: 6px;
}


.site-topbar__status-indicator,
.topbar__status-indicator {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: currentColor;
}


.site-topbar__status-text,
.topbar__status-text {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*
   Status color is controlled by state/class from real application data.
   No fake status text is created here.
*/

.site-topbar__status[data-state="active"] .site-topbar__status-indicator,
.topbar__status[data-state="active"] .topbar__status-indicator {
    background: var(
        --success-color,
        #16a34a
    );
}


.site-topbar__status[data-state="warning"] .site-topbar__status-indicator,
.topbar__status[data-state="warning"] .topbar__status-indicator {
    background: var(
        --warning-color,
        #d97706
    );
}


.site-topbar__status[data-state="error"] .site-topbar__status-indicator,
.topbar__status[data-state="error"] .topbar__status-indicator {
    background: var(
        --danger-color,
        #dc2626
    );
}


/* ==========================================================================
   13. ICON SLOTS
   ========================================================================== */

.site-topbar__icon,
.topbar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    flex: 0 0 auto;

    color: currentColor;
}


.site-topbar__icon svg,
.topbar__icon svg {
    width: 100%;
    height: 100%;

    display: block;

    fill: none;

    stroke: currentColor;
}


/* ==========================================================================
   14. DYNAMIC DATA / LOADING STATE
   ========================================================================== */

.site-topbar [aria-busy="true"],
.topbar [aria-busy="true"] {
    cursor: progress;
}


.site-topbar__loading,
.topbar__loading {
    display: inline-flex;
    align-items: center;

    min-width: 40px;
    min-height: 20px;

    border-radius: 4px;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.05) 25%,
        rgba(0, 0, 0, 0.09) 50%,
        rgba(0, 0, 0, 0.05) 75%
    );

    background-size: 200% 100%;

    animation: topbar-loading 1.4s ease-in-out infinite;
}


@keyframes topbar-loading {
    from {
        background-position: 200% 0;
    }

    to {
        background-position: -200% 0;
    }
}


/* ==========================================================================
   15. DISABLED STATE
   ========================================================================== */

.site-topbar [aria-disabled="true"],
.topbar [aria-disabled="true"],
.site-topbar :disabled,
.topbar :disabled {
    cursor: not-allowed;

    opacity: 0.55;

    pointer-events: none;
}


/* ==========================================================================
   16. COMPACT MODE
   ========================================================================== */

.site-topbar--compact,
.topbar--compact {
    --topbar-min-height: 32px;
    --topbar-item-gap: 7px;
    --topbar-group-gap: 4px;
}


.site-topbar--compact .site-topbar__inner,
.topbar--compact .topbar__inner {
    padding-inline: var(
        --container-padding-compact,
        12px
    );
}


/* ==========================================================================
   17. HIDDEN MOBILE ITEMS
   ========================================================================== */

/*
   These classes allow JS/responsive CSS to hide secondary topbar content
   without deleting real data from the DOM.
*/

.site-topbar__desktop-only,
.topbar__desktop-only {
    display: inline-flex;
}


.site-topbar__mobile-only,
.topbar__mobile-only {
    display: none;
}


/* ==========================================================================
   18. TABLET
   ========================================================================== */

@media (max-width: 1023px) {

    .site-topbar__inner,
    .topbar__inner {
        min-height: 36px;

        gap: 8px;

        padding-inline: var(
            --container-padding-tablet,
            14px
        );
    }

    .site-topbar__location,
    .topbar__location {
        max-width: 34vw;
    }

    .site-topbar__right,
    .topbar__right {
        gap: 7px;
    }

    .site-topbar__business-link,
    .topbar__business-link {
        padding-inline: 8px;
    }
}


/* ==========================================================================
   19. MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .site-topbar,
    .topbar,
    [data-component="topbar"] {
        font-size: 0.8125rem;
    }

    .site-topbar__inner,
    .topbar__inner {
        min-height: 34px;

        padding-inline: var(
            --container-padding-mobile,
            10px
        );

        gap: 6px;
    }

    .site-topbar__left,
    .site-topbar__right,
    .topbar__left,
    .topbar__right {
        gap: 5px;
    }

    .site-topbar__location,
    .topbar__location {
        max-width: 58vw;
    }

    .site-topbar__help,
    .topbar__help,
    .site-topbar__language,
    .topbar__language,
    .site-topbar__desktop-only,
    .topbar__desktop-only {
        display: none;
    }

    .site-topbar__mobile-only,
    .topbar__mobile-only {
        display: inline-flex;
    }

    .site-topbar__business-link,
    .topbar__business-link {
        min-height: 28px;

        padding: 4px 7px;

        font-size: 0.75rem;
    }

    .site-topbar__auth-link,
    .topbar__auth-link {
        min-height: 28px;

        padding: 4px 6px;
    }
}


/* ==========================================================================
   20. SMALL MOBILE
   ========================================================================== */

@media (max-width: 479px) {

    .site-topbar__inner,
    .topbar__inner {
        min-height: 32px;

        padding-inline: 8px;
    }

    .site-topbar__location,
    .topbar__location {
        max-width: 52vw;
    }

    .site-topbar__location-trigger,
    .topbar__location-trigger {
        padding-inline: 4px;
    }

    .site-topbar__location-icon,
    .topbar__location-icon {
        width: 16px;
        height: 16px;
    }

    .site-topbar__business-link,
    .topbar__business-link {
        padding-inline: 6px;
    }

    .site-topbar__separator,
    .topbar__separator {
        display: none;
    }
}


/* ==========================================================================
   21. LARGE SCREENS
   ========================================================================== */

@media (min-width: 1440px) {

    .site-topbar__inner,
    .topbar__inner {
        padding-inline: var(
            --container-padding-large,
            20px
        );
    }
}


/* ==========================================================================
   22. RTL SUPPORT
   ========================================================================== */

[dir="rtl"] .site-topbar__inner,
[dir="rtl"] .topbar__inner {
    direction: rtl;
}


[dir="rtl"] .site-topbar__location-trigger,
[dir="rtl"] .topbar__location-trigger {
    text-align: end;
}


/* ==========================================================================
   23. HIGH CONTRAST / FORCED COLORS
   ========================================================================== */

@media (forced-colors: active) {

    .site-topbar,
    .topbar {
        border-bottom-color: CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    .site-topbar a,
    .topbar a {
        color: LinkText;
    }

    .site-topbar__business-link,
    .topbar__business-link {
        border-color: ButtonText;
        background: ButtonFace;
        color: ButtonText !important;
    }

    .site-topbar__separator,
    .topbar__separator {
        background: CanvasText;
    }

    .site-topbar__status-indicator,
    .topbar__status-indicator {
        background: CanvasText !important;
    }
}


/* ==========================================================================
   24. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .site-topbar *,
    .topbar * {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}


/* ==========================================================================
   25. PRINT
   ========================================================================== */

@media print {

    .site-topbar,
    .topbar,
    [data-component="topbar"] {
        position: static;

        min-height: auto;

        border: 0;

        background: transparent !important;

        box-shadow: none !important;

        color: #000 !important;
    }

    .site-topbar__business-cta,
    .topbar__business-cta,
    .site-topbar__auth,
    .topbar__auth,
    .site-topbar__language,
    .topbar__language {
        display: none !important;
    }
}