/* Live demo: demo bar and guided tour popovers (driver.js). Brand teal like the portal. */
:root {
    --demo-primary: #009999;
    --demo-primary-dark: #007A7A;
    --demo-ink: #0F172A;
    --demo-body: #334155;
    --demo-muted: #64748B;
    --demo-surface: #FFFFFF;
    --demo-border: #E2E8F0;
}

.hems-demo-bar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100vw - 32px);
    padding: 5px 6px 5px 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background: var(--demo-ink);
    color: #fff;
    font: 500 12.5px/1 Inter, system-ui, sans-serif;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
}

.hems-demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
    flex: none;
}

.hems-demo-label {
    margin-right: 4px;
    white-space: nowrap;
}

.hems-demo-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s ease;
}

.hems-demo-btn:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.hems-demo-btn:focus-visible,
.hems-demo-roles a:focus-visible {
    outline: 2px solid #5EEAD4;
    outline-offset: 2px;
}

.hems-demo-exit {
    background: var(--demo-primary);
}

.hems-demo-exit:hover {
    background: var(--demo-primary-dark);
}

.hems-demo-menu {
    position: relative;
}

.hems-demo-roles {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    padding: 6px;
    border: 1px solid var(--demo-border);
    border-radius: 10px;
    background: var(--demo-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.hems-demo-roles a {
    display: block;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--demo-body);
    text-decoration: none;
}

.hems-demo-roles a:hover {
    background: rgba(0, 153, 153, .08);
    color: var(--demo-primary-dark);
}

@media (max-width: 640px) {
    .hems-demo-bar {
        top: auto;
        bottom: 12px;
    }
    .hems-demo-label {
        display: none;
    }
}

/* driver.js popover */
.driver-popover.hems-demo-popover {
    max-width: min(360px, calc(100vw - 32px));
    padding: 18px 18px 14px;
    border-radius: 12px;
    color: var(--demo-body);
    font-family: Inter, system-ui, sans-serif;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .22);
}

.hems-demo-popover .driver-popover-title {
    color: var(--demo-ink);
    font: 700 16px/1.3 Inter, system-ui, sans-serif;
}

.hems-demo-popover .driver-popover-description {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.55;
}

.hems-demo-popover .driver-popover-footer {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hems-demo-popover .driver-popover-progress-text {
    flex: 1 0 100%;
    color: var(--demo-muted);
    font-size: 11.5px;
}

.hems-demo-popover .driver-popover-navigation-btns {
    flex: 1 0 100%;
    justify-content: flex-end;
    gap: 6px;
}

.hems-demo-popover .driver-popover-footer button {
    padding: 6px 12px;
    border: 1px solid var(--demo-border);
    border-radius: 8px;
    background: #fff;
    color: var(--demo-body);
    font: 600 12.5px Inter, system-ui, sans-serif;
    text-shadow: none;
}

.hems-demo-popover .driver-popover-footer .driver-popover-next-btn {
    border-color: var(--demo-primary);
    background: var(--demo-primary);
    color: #fff;
}

.hems-demo-popover .driver-popover-footer .driver-popover-next-btn:hover {
    background: var(--demo-primary-dark);
}

.hems-demo-popover .driver-popover-close-btn {
    color: var(--demo-muted);
}
