/* ============================================================
   Dashboard Kit — Shared styles for CG visualization pages
   Provides: freshness badges, start overlays, theme toggle,
   and common dashboard layout utilities.
   ============================================================ */

/* ---- Data Freshness Badge ---- */
.dk-freshness {
    position: fixed;
    /* Stack above the 60px chat launcher (bottom:24px) so the two
       bottom-right elements don't overlap. */
    bottom: 92px;
    right: 16px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(11, 21, 37, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--brand-border, rgba(255,255,255,0.15));
    font-family: var(--font-ui, 'Inter', system-ui, sans-serif);
    font-size: 0.7rem;
    color: var(--brand-muted, rgba(255,255,255,0.5));
    pointer-events: auto;
    transition: opacity 0.2s;
}
.dk-freshness:hover {
    opacity: 1;
    color: var(--brand-text, rgba(255,255,255,0.85));
}
.dk-freshness-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dk-freshness-dot.fresh    { background: #66BB6A; } /* < 7 days */
.dk-freshness-dot.recent   { background: #FFD54F; } /* 7-30 days */
.dk-freshness-dot.stale    { background: #EF5350; } /* > 30 days */

[data-theme="light"] .dk-freshness {
    background: rgba(246, 246, 246, 0.9);
    border-color: #D7D7D7;
    color: #606060;
}
[data-theme="light"] .dk-freshness:hover {
    color: #333;
}

/* ---- Ecosystem Start Overlay ---- */
.dk-start-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 550;
    max-width: 280px;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: rgba(11, 21, 37, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}
.dk-start-overlay p {
    font-size: 0.82rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
    color: var(--brand-text, rgba(255,255,255,0.85));
}
.dk-start-overlay .tour-btn {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

[data-theme="light"] .dk-start-overlay {
    background: rgba(246, 246, 246, 0.85);
    border-color: #D7D7D7;
}

/* ---- Center Start Overlay (variant used by bio, etc.) ---- */
.dk-start-overlay.dk-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 440px;
    padding: 2.5rem 3rem;
    border-radius: 16px;
    text-align: center;
}
.dk-start-overlay.dk-center h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    color: inherit;
}
.dk-start-overlay.dk-center p {
    font-size: 0.95rem;
}
.dk-start-overlay.dk-center .dk-hint {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    opacity: 0.5;
}
.dk-start-overlay.dk-center .tour-btn {
    font-size: 1rem;
    padding: 0.85rem 2rem;
}

