/* SignalSurface.css */
/* BES-010: CSS Surface Engine for Beacon Signal */

.sg-workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
    background: var(--lb-surface);
    color: var(--lb-on-surface);
    position: relative;
}

.sg-toolbar {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 var(--lb-page-gutter);
    border-bottom: 1px solid var(--lb-border);
    backdrop-filter: blur(var(--lb-glass-blur)) saturate(var(--lb-glass-sat));
    background: var(--lb-glass-tint);
    position: sticky;
    top: 0;
    z-index: var(--lb-z-header);
    gap: var(--lb-sp4);
}

.sg-toolbar-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    border-radius: 13px; /* Pill */
    padding: 0 var(--lb-sp3);
    font-size: var(--lb-text-sm);
    font-weight: 500;
    color: var(--lb-on-surface-dim);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sg-toolbar-pill:hover {
    color: var(--lb-on-surface);
    background: rgba(255, 255, 255, 0.05);
}

.sg-toolbar-pill.active {
    color: var(--lb-primary); /* Beacon green */
    background: rgba(34, 197, 94, 0.15); /* Match requested color */
}

.sg-toolbar-title {
    font-size: var(--lb-text-lg);
    font-weight: 600;
    color: var(--lb-on-surface);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid transparent;
    border-radius: var(--lb-sp1);
    padding: 2px var(--lb-sp1);
    transition: all 0.2s ease;
    cursor: text;
    background: transparent;
    outline: none;
}

.sg-toolbar-title:hover {
    border-color: var(--lb-border);
    background: rgba(255, 255, 255, 0.05);
}

.sg-toolbar-title:focus {
    border-color: var(--lb-primary);
    background: rgba(0, 0, 0, 0.2);
}

.sg-toolbar-actions {
    display: flex;
    align-items: center;
    gap: var(--lb-sp2);
}

.sg-toolbar-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%; /* Circular */
    background: rgba(255, 255, 255, 0.08); /* Consistent with button patterns */
    border: none;
    color: var(--lb-on-surface);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sg-toolbar-actions button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.sg-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: var(--lb-sp6);
    text-align: center;
    gap: var(--lb-sp4);
}

.sg-empty-state-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--lb-on-surface-dim);
}

.sg-empty-state-label {
    font-size: var(--lb-text-base);
    color: var(--lb-on-surface-dim);
    max-width: 300px;
}

.sg-empty-state-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 18px; /* Pill */
    padding: 0 var(--lb-sp5);
    background: var(--lb-primary-variant); /* Lumber brand */
    color: var(--lb-on-primary);
    font-weight: 500;
    font-size: var(--lb-text-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sg-empty-state-cta:hover {
    background: var(--lb-primary);
}

/* ── Signal Rail Extracted Classes ── */
.si-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px 16px;
    text-align: center;
    min-height: 200px;
}

.si-empty-icon {
    font-size: 32px;
    opacity: 0.2;
}

.si-empty-text {
    font-size: 12px;
    color: var(--lb-on-surface-muted, rgba(255,255,255,0.5));
}

.si-rail-card {
    padding: 10px 12px;
    margin: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.15s;
}

.si-rail-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.si-rail-card-title {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--lb-on-surface, #e2e8f0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-rail-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--lb-on-surface-muted, rgba(255,255,255,0.45));
}

.si-rail-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.si-rail-card-date {
    font-variant-numeric: tabular-nums;
}

.si-rail-footer {
    padding: 12px 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.si-rail-footer-btn {
    width: 100%;
}

.si-rail-body {
    display: flex;
    flex-direction: column;
}

.si-rail-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 12px;
}

/* ── Signal Surface Extracted Classes ── */
.sg-modal-text {
    margin-bottom: 16px;
}

.sg-danger-btn {
    background: #e53e3e !important;
    border-color: #e53e3e !important;
    color: white !important;
}

.sg-toolbar-center {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--lb-border-subtle, rgba(255,255,255,0.08));
    background: var(--lb-surface-base, #1e1e1e);
}

.sg-toolbar-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-toolbar-title-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--lb-text-primary, #ffffff);
}

.sg-toolbar-status-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--lb-surface-raised, rgba(255,255,255,0.05));
    color: var(--lb-text-secondary, rgba(255,255,255,0.7));
}

.sg-toolbar-right-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sg-pill-toggle-container {
    display: flex;
    background: var(--lb-surface-low, rgba(255,255,255,0.03));
    border-radius: 30px;
    padding: 2px;
}

.sg-pill-btn {
    border-radius: 30px !important;
}

.sg-publish-btn {
    margin-left: 12px;
}

.sg-hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.sg-hero-icon {
    font-size: 48px;
    opacity: 0.2;
    margin-bottom: 16px;
}

.sg-hero-subtitle {
    text-align: center;
    max-width: 400px;
    margin-bottom: 24px;
}

.sg-placeholder-text {
    padding: 20px;
    color: var(--lb-text-secondary, rgba(255,255,255,0.5));
}

.sg-layout-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sg-layout-scroll {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Remaining Extracted Extends ── */
.si-status-badge { display:inline-flex; align-items:center; padding:2px 6px; border-radius:4px; font-size:9px; font-weight:700; text-transform:uppercase; }
.si-spacer { flex:1; }
.si-rail-card.si-card-active { box-shadow: 0 0 0 1px rgba(52,211,153,0.4), 0 0 12px rgba(52,211,153,0.15); background: rgba(52,211,153,0.05); }

/* SignalInspector.js */
.sg-ip-spacer { flex: 1; }
.sg-ip-bar-fill { height: 100%; border-radius: 4px; background: var(--lb-accent-green, #34d399); }

/* SignalComposer.js */
.sg-slide-thumb-preview-img { max-width: 100%; max-height: 200px; border-radius: 4px; }
.sg-slide-thumb-preview { margin-bottom: 8px; }
.sg-change-dot { margin-left: 4px; color: var(--lb-alert-warning, #f2c94c); }
.sg-slide-source-badge { cursor: pointer; }
.sg-slide-source-badge.has-changes { color: var(--lb-alert-warning, #f2c94c); }
.sg-slide-title { flex: 1; cursor: pointer; }
.sg-slide-toggle-sync { cursor: pointer; margin-left: 8px; opacity: 0.6; }
.sg-slide-action-btn { cursor: pointer; margin-left: 8px; opacity: 0.6; }
