/* ═══════════════════════════════════════
   TOOLBAR — Floating toolbar + Brand
   ═══════════════════════════════════════ */

.floating-toolbar {
    position: absolute;
    top: 18px; left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    animation: slideDown 0.5s var(--ease-spring) both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.toolbar-brand {
    background: var(--glass-bg);
    backdrop-filter: blur(32px) saturate(1.4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-pill);
    min-width: 320px;
    padding: 10px 26px;
    display: flex; align-items: center; justify-content: center; gap: 15px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
}

.brand-logo-img {
    height: 44px; width: auto; display: block; object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 0 6px rgba(56,189,248,0.25));
}

.brand-icon {
    width: 44px; height: 36px;
    background: linear-gradient(135deg, rgba(56,189,248,0.9), rgba(96,165,250,0.75));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px; color: var(--bg-base);
    box-shadow: 0 2px 12px rgba(56,189,248,0.4);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }

.brand-title {
    font-size: 17px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2;
    background: linear-gradient(120deg, var(--accent-sky), var(--accent-blue));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 11.5px; color: var(--text-secondary); font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.09em;
}

.toolbar-actions {
    display: flex; gap: 4px;
    background: var(--glass-bg);
    backdrop-filter: blur(32px) saturate(1.4);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 6px;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.04);
}

.toolbar-btn {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    color: var(--text-secondary);
    cursor: pointer; font-weight: 600; font-size: 13.5px;
    font-family: inherit; letter-spacing: -0.01em;
    transition: color .2s var(--ease-out), background .2s var(--ease-out), border-color .2s var(--ease-out);
    position: relative; white-space: nowrap;
}

.toolbar-btn:hover {
    color: var(--text-primary);
    background: rgba(56,189,248,0.07);
    border-color: var(--border-strong);
}

.toolbar-btn.active {
    background: rgba(56,189,248,0.12);
    border-color: var(--border-accent);
    color: var(--accent-sky);
    font-weight: 700;
}

/* Active-layer badge: sky-blue live indicator */
.toolbar-btn.has-active-items {
    border-color: rgba(56, 189, 248, 0.28) !important;
}

.toolbar-btn.has-active-items::after {
    content: '';
    position: absolute;
    top: 4px; right: 4px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-sky);
    box-shadow: 0 0 0 1.5px var(--bg-surface), 0 0 6px rgba(56,189,248,0.6);
    animation: liveIndicator 2.5s ease-in-out infinite;
}

@keyframes liveIndicator {
    0%, 100% { box-shadow: 0 0 0 1.5px var(--bg-surface), 0 0 4px rgba(56,189,248,0.30); }
    50%       { box-shadow: 0 0 0 1.5px var(--bg-surface), 0 0 7px rgba(56,189,248,0.50); }
}

.view-toggle {
    display: flex; gap: 3px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-md); padding: 3px;
}

.view-btn {
    padding: 6px 14px; border: none; background: transparent;
    color: var(--text-secondary); cursor: pointer;
    border-radius: 9px; font-weight: 700; font-size: 11px;
    font-family: inherit; text-transform: uppercase; letter-spacing: 0.06em;
    transition: all .2s var(--ease-out);
}

.view-btn.active {
    background: linear-gradient(135deg, var(--accent-sky), var(--accent-blue));
    color: var(--bg-base);
    box-shadow: 0 2px 10px rgba(56,189,248,0.4);
}
