/**
 * DemoLab - Demo Bar Styles
 */

.demolab-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.8125rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.demolab-bar--top {
    top: 0;
}

.demolab-bar--bottom {
    bottom: 0;
}

.demolab-bar__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.demolab-bar__message {
    flex: 1;
    min-width: 200px;
}

.demolab-bar__credentials {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.demolab-bar__label {
    color: #94a3b8;
    font-size: 0.75rem;
}

.demolab-bar__cred {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 0.15em 0.5em;
    border-radius: 0.25rem;
    font-family: 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
    font-size: 0.8125rem;
    letter-spacing: 0.025em;
}

.demolab-bar__sep {
    color: #64748b;
}

.demolab-bar__countdown {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.demolab-bar__link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s;
}

.demolab-bar__link--admin {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.demolab-bar__link--admin:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.demolab-bar__link:not(.demolab-bar__link--admin) {
    background: #2563eb;
    color: #fff;
}

.demolab-bar__link:not(.demolab-bar__link--admin):hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.demolab-bar__close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.125rem 0.375rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: color 0.15s, background-color 0.15s;
}

.demolab-bar__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 640px) {
    .demolab-bar__inner {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .demolab-bar__message {
        flex-basis: 100%;
    }
}
