/* ============================================
   Dev Tools Overlay Styles
   Dark theme, separated from site design
   ============================================ */

/* Toggle button */
.dev-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #21262d;
    border: 2px solid #30363d;
    color: #8b949e;
    cursor: pointer;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    font-size: 20px;
    padding: 0;
    line-height: 1;
}

.dev-toggle:hover {
    border-color: #0ff;
    color: #0ff;
}

.dev-toggle.active {
    border-color: #0ff;
    color: #0ff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

/* Dev mode outlines on all tagged elements */
body.dev-mode [data-dev-id] {
    outline: 1px dashed rgba(0, 255, 255, 0.35);
    cursor: crosshair;
}

/* Hover popover */
.dev-popover {
    position: fixed;
    z-index: 100000;
    background: #161b22;
    border: 2px solid #0ff;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    display: none;
}

.dev-popover.visible {
    display: block;
}

.dev-popover.pinned {
    border-color: #f85149;
    pointer-events: auto;
}

.dev-popover-id {
    color: #0ff;
    font-weight: 600;
    margin-bottom: 4px;
}

.dev-popover-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.dev-badge {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.dev-badge-tag {
    background: rgba(248, 81, 73, 0.2);
    color: #f85149;
}

.dev-badge-class {
    background: rgba(188, 140, 255, 0.2);
    color: #bc8cff;
}

.dev-badge-dims {
    background: rgba(63, 185, 80, 0.2);
    color: #3fb950;
}

.dev-popover-copy {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: #30363d;
    color: #8b949e;
    border: 1px solid #484f58;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    font-family: inherit;
}

.dev-popover-copy:hover {
    background: #484f58;
    color: #e6edf3;
}

/* Pinned element highlight */
[data-dev-id].dev-pinned {
    outline: 2px solid #f85149 !important;
}

/* Status bar */
.dev-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #161b22;
    border-top: 1px solid #30363d;
    z-index: 99998;
    display: none;
    align-items: center;
    padding: 0 12px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 11px;
    color: #8b949e;
    gap: 16px;
}

.dev-status-bar.visible {
    display: flex;
}

.dev-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
}

.dev-status-label {
    color: #0ff;
    font-weight: 600;
}

.dev-status-count {
    color: #8b949e;
}

.dev-status-unique {
    margin-left: auto;
}

.dev-status-unique.ok {
    color: #3fb950;
}

.dev-status-unique.error {
    color: #f85149;
}
