.stealthops-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #080c12;
    color: #9ab;
    font-size: 12px;
    font-family: "Cascadia Code", "Fira Code", monospace;
}

.stealthops-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #0c1018;
    border-bottom: 1px solid #1a2535;
    flex-shrink: 0;
    gap: 10px;
}

.stealthops-title {
    font-size: 14px;
    font-weight: 700;
    color: #7ac;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stealthops-header-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
}

.stealthops-stat {
    font-size: 10px;
    color: #445566;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stealthops-stat-val {
    font-weight: 700;
    font-size: 11px;
    color: #7ac;
}

.stealthops-heat-display {
    font-size: 11px;
    color: #556;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stealthops-heat-bar-wrap {
    width: 50px;
    height: 4px;
    background: #1a2535;
    border-radius: 2px;
    overflow: hidden;
}

.stealthops-heat-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: #3fb950;
    transition: width 0.6s ease, background 0.3s;
}

.stealthops-heat-bar-fill.warn { background: #d29922; }
.stealthops-heat-bar-fill.danger { background: #f85149; }

.stealthops-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.stealthops-left {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.stealthops-sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stealthops-right {
    width: 260px;
    flex-shrink: 0;
    border-left: 1px solid #1a2535;
    display: flex;
    flex-direction: column;
    background: #0c1018;
}

.stealthops-section-label {
    font-size: 10px;
    color: #445566;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #1a2535;
    padding-bottom: 4px;
}

.stealthops-sort-btn {
    background: none;
    border: 1px solid #1a2535;
    color: #445566;
    font-size: 9px;
    font-family: inherit;
    padding: 2px 6px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
}

.stealthops-sort-btn:hover { border-color: #2a3d55; color: #7ac; }
.stealthops-sort-btn.active { border-color: #7ac; color: #7ac; }

.stealthops-node-card {
    background: #0c1018;
    border: 1px solid #1a2535;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    position: relative;
}

.stealthops-node-card:hover {
    border-color: #2a3d55;
    background: #0e1420;
}

.stealthops-node-card.selected {
    border-color: #7ac;
    background: #0a1420;
    box-shadow: 0 0 8px rgba(119, 170, 204, 0.08);
}

.stealthops-node-card.selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #7ac;
    border-radius: 1px;
}

.stealthops-node-icon { font-size: 20px; flex-shrink: 0; }

.stealthops-node-info { flex: 1; min-width: 0; }

.stealthops-node-ip {
    font-size: 13px;
    font-weight: 700;
    color: #7ac;
}

.stealthops-node-hostname {
    font-size: 10px;
    color: #556677;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stealthops-node-badges {
    display: flex;
    gap: 3px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.stealthops-badge {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.stealthops-badge.root { background: rgba(210, 153, 34, 0.15); color: #d29922; border: 1px solid rgba(210, 153, 34, 0.4); }
.stealthops-badge.backdoor { background: rgba(119, 170, 204, 0.08); color: #7ac; border: 1px solid rgba(119, 170, 204, 0.3); }
.stealthops-badge.connected { background: rgba(63, 185, 80, 0.08); color: #3fb950; border: 1px solid rgba(63, 185, 80, 0.3); }

.stealthops-noise-section {
    text-align: right;
    flex-shrink: 0;
    min-width: 60px;
}

.stealthops-noise-val {
    font-size: 14px;
    font-weight: 700;
    color: #3fb950;
    transition: color 0.3s;
}

.stealthops-noise-val.warn { color: #d29922; }
.stealthops-noise-val.danger { color: #f85149; }

.stealthops-noise-label {
    font-size: 9px;
    color: #445566;
    text-transform: uppercase;
}

.stealthops-noise-bar-wrap {
    width: 60px;
    height: 4px;
    background: #1a2535;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.stealthops-noise-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: #3fb950;
    transition: width 0.6s ease, background 0.3s;
}

.stealthops-noise-bar-fill.warn { background: #d29922; }
.stealthops-noise-bar-fill.danger { background: #f85149; }

/* Right panel */
.stealthops-panel-header {
    padding: 12px 14px;
    border-bottom: 1px solid #1a2535;
    font-size: 11px;
    font-weight: 700;
    color: #9ab;
}

.stealthops-panel-ip {
    color: #7ac;
    font-size: 14px;
    margin-bottom: 2px;
}

.stealthops-panel-hostname {
    color: #556677;
    font-size: 10px;
}

.stealthops-panel-badges {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.stealthops-panel-noise {
    padding: 10px 14px;
    border-bottom: 1px solid #1a2535;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stealthops-panel-noise-val {
    font-size: 18px;
    font-weight: 700;
    color: #3fb950;
    min-width: 32px;
    text-align: right;
}

.stealthops-panel-noise-val.warn { color: #d29922; }
.stealthops-panel-noise-val.danger { color: #f85149; }

.stealthops-panel-noise-bar-wrap {
    flex: 1;
    height: 6px;
    background: #1a2535;
    border-radius: 3px;
    overflow: hidden;
}

.stealthops-panel-noise-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: #3fb950;
    transition: width 0.6s ease, background 0.3s;
}

.stealthops-panel-noise-bar-fill.warn { background: #d29922; }
.stealthops-panel-noise-bar-fill.danger { background: #f85149; }

.stealthops-panel-noise-text {
    font-size: 9px;
    color: #445566;
    text-transform: uppercase;
}

.stealthops-actions {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-bottom: 1px solid #1a2535;
}

.stealthops-action-btn {
    background: #0c1018;
    border: 1px solid #1a2535;
    color: #9ab;
    font-size: 11px;
    font-family: inherit;
    padding: 10px 12px;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.stealthops-action-btn:hover:not(:disabled):not(.done) {
    background: #1a2535;
    border-color: #2a3d55;
    transform: translateX(2px);
}

.stealthops-action-btn.done {
    color: #3fb950;
    border-color: rgba(63, 185, 80, 0.3);
    background: rgba(63, 185, 80, 0.05);
    cursor: default;
}

.stealthops-action-btn.danger:hover:not(:disabled) {
    background: rgba(248, 81, 73, 0.08);
    border-color: rgba(248, 81, 73, 0.5);
    color: #f85149;
}

.stealthops-action-btn:disabled:not(.done) {
    opacity: 0.5;
    cursor: default;
}

.stealthops-action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.stealthops-action-btn.loading .stealthops-action-icon {
    animation: stealthops-spin 0.8s linear infinite;
}

@keyframes stealthops-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.stealthops-action-icon { font-size: 16px; flex-shrink: 0; }
.stealthops-action-label { font-weight: 600; }
.stealthops-action-desc { font-size: 9px; color: #445566; margin-top: 1px; }

.stealthops-result-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.stealthops-result-label {
    font-size: 9px;
    color: #445566;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #1a2535;
}

.stealthops-result-item {
    padding: 6px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 11px;
    border-left: 2px solid #1a2535;
    background: #080c12;
    animation: stealthops-fadeIn 0.3s ease;
    line-height: 1.4;
}

@keyframes stealthops-fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.stealthops-result-item.ok { border-left-color: #3fb950; color: #3fb950; }
.stealthops-result-item.error { border-left-color: #f85149; color: #f85149; }
.stealthops-result-item.alert { border-left-color: #d29922; color: #d29922; }

.stealthops-result-time {
    font-size: 9px;
    color: #334;
    margin-top: 2px;
}

.stealthops-no-select {
    padding: 30px 20px;
    text-align: center;
    color: #2a3d55;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stealthops-no-select-icon {
    font-size: 24px;
    opacity: 0.5;
}

.stealthops-empty {
    text-align: center;
    color: #2a3d55;
    padding: 40px 20px;
}

.stealthops-empty-icon { font-size: 36px; margin-bottom: 8px; opacity: 0.6; }

/* Pulse animation for high-danger noise */
.stealthops-noise-val.danger { animation: stealthops-pulse 2s ease-in-out infinite; }

@keyframes stealthops-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Scrollbar styling */
.stealthops-left::-webkit-scrollbar,
.stealthops-result-area::-webkit-scrollbar {
    width: 4px;
}

.stealthops-left::-webkit-scrollbar-track,
.stealthops-result-area::-webkit-scrollbar-track {
    background: transparent;
}

.stealthops-left::-webkit-scrollbar-thumb,
.stealthops-result-area::-webkit-scrollbar-thumb {
    background: #1a2535;
    border-radius: 2px;
}

.stealthops-left::-webkit-scrollbar-thumb:hover,
.stealthops-result-area::-webkit-scrollbar-thumb:hover {
    background: #2a3d55;
}
