/* Tactical RMM — Enterprise Command Console */
:root {
    --bg-dark: #090d16;
    --bg-surface: #0f172a;
    --bg-card: #141e33;
    --bg-card-hover: #1a2742;
    --bg-elevated: #1e293b;
    
    --border-color: #1e293b;
    --border-subtle: #172033;
    --border-focus: #3b82f6;
    
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-cyan: #0284c7;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-red: #ef4444;
    --accent-purple: #7c3aed;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-emerald: #10b981;
    --text-cyan: #38bdf8;
    
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px -1px rgba(0, 0, 0, 0.2);
    --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-ui);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Master Layout */
.master-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========================================================= */
/* Header & Brand HUD                                       */
/* ========================================================= */
.master-header {
    height: 56px;
    background: #0f172a;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 80;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-shield {
    width: 32px;
    height: 32px;
    background: #1e293b;
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid #334155;
}

.brand-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-title-row h2 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f8fafc;
}

.version-tag {
    background: #1e293b;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid #334155;
    font-family: var(--font-mono);
}

.brand-tag {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Header Stats HUD */
.header-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 110px;
}

.stat-card:hover {
    border-color: #334155;
}

.stat-icon-wrap {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.stat-icon-wrap.online {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-emerald);
}

.stat-icon-wrap.session {
    background: rgba(2, 132, 199, 0.1);
    color: var(--accent-cyan);
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.stat-value {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    line-height: 1.2;
}

.text-emerald { color: var(--accent-emerald) !important; }
.text-cyan { color: var(--accent-cyan) !important; }

.server-status-badge {
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
}

.status-indicator-dot.online {
    background: var(--accent-emerald);
}

.status-indicator-dot.offline {
    background: var(--accent-red);
}

.server-text {
    display: flex;
    flex-direction: column;
}

.server-state {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.server-ping {
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================================= */
/* Buttons                                                  */
/* ========================================================= */
.btn {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
    user-select: none;
    line-height: 1.2;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: #1d4ed8;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    border-color: #1e40af;
}

.glow-button {
    /* No glowing gradients */
}

.btn-secondary {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
}

.btn-secondary:hover {
    background: #334155;
    color: #ffffff;
}

.btn-outline {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #334155;
}

.btn-outline:hover {
    background: #1e293b;
    color: #ffffff;
    border-color: #475569;
}

.btn-success {
    background: #059669;
    color: #ffffff;
    border-color: #047857;
}

.btn-success:hover {
    background: #10b981;
    border-color: #059669;
}

.btn-full {
    width: 100%;
}

/* ========================================================= */
/* Dashboard Body & Table Controls                          */
/* ========================================================= */
.dashboard-body {
    flex: 1;
    padding: 20px 24px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.table-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    width: 380px;
    max-width: 100%;
    color: var(--text-muted);
}

.search-bar:focus-within {
    border-color: #3b82f6;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 12px;
    width: 100%;
    font-family: var(--font-ui);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

.clear-search-btn:hover {
    color: var(--text-primary);
}

.filter-pills {
    display: flex;
    gap: 4px;
    background: #0f172a;
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.pill {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.pill.active {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid #334155;
}

.pill.pill-online.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.pill.pill-offline.active {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.3);
}

/* ========================================================= */
/* Table Container & Rows                                   */
/* ========================================================= */
.table-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.table-header-info {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b1120;
}

.table-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-title h3 {
    font-size: 13px;
    font-weight: 600;
    color: #f8fafc;
}

.live-stream-badge {
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #38bdf8;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #38bdf8;
    border-radius: 50%;
}

.table-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.table-responsive {
    overflow-x: auto;
}

.agent-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.agent-table th {
    background: #0b1120;
    padding: 9px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.agent-table td {
    padding: 9px 14px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.agent-table tr {
    transition: background 0.15s ease;
}

.agent-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}

.status-badge.online {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-badge.offline {
    background: rgba(100, 116, 139, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

.status-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge.online .dot {
    box-shadow: 0 0 8px #34d399;
}

.tag-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.agent-id-pill {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    display: inline-block;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.agent-id-pill:hover {
    color: var(--text-primary);
    border-color: #3b82f6;
}

.hostname-title {
    font-weight: 500;
    color: var(--text-primary);
}

.user-sub {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.os-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    padding: 2px 7px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    font-weight: 500;
}

.arch-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 4px;
    border-radius: 2px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.ip-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.06);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(56, 189, 248, 0.2);
    cursor: pointer;
}

.ip-link:hover {
    background: rgba(56, 189, 248, 0.15);
}

.specs-info {
    font-size: 11px;
    color: var(--text-secondary);
}

.time-seen {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Build Info & Update Badges */
.build-info-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.version-chip {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    display: inline-block;
    width: fit-content;
    border: 1px solid transparent;
}

.version-chip.latest {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    border-color: #1e293b;
}

.version-chip.update-available {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-update-available {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
    width: fit-content;
}

.badge-update-available:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: #f59e0b;
}

.dot-amber {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fbbf24;
}

.badge-up-to-date {
    font-size: 10px;
    color: #64748b;
}

/* Action Button Group */
.action-btn-group {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}

.btn-action-control {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
    border: 1px solid transparent;
}

.btn-action-sync {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.btn-action-sync:hover:not(:disabled) {
    background: #334155;
    color: #ffffff;
    border-color: #475569;
}

.btn-action-update {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.btn-action-update:hover:not(:disabled) {
    background: rgba(245, 158, 11, 0.25);
    border-color: #f59e0b;
}

.btn-action-mirror {
    background: #1e293b;
    border-color: #334155;
    color: #34d399;
}

.btn-action-mirror:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
}

.btn-action-backstage {
    background: #1e293b;
    border-color: #334155;
    color: #c084fc;
}

.btn-action-backstage:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
}

.btn-action-control:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Action Button: Remove Session */
.btn-action-delete {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    padding: 4px 6px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-action-delete:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ========================================================= */
/* Empty State (Clean Minimalist)                           */
/* ========================================================= */
.empty-state {
    padding: 50px 24px;
    text-align: center;
    display: none;
}

.empty-radar {
    display: none; /* Removed AI radar animation */
}

.empty-state h3 {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.empty-state p {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 460px;
    margin: 0 auto 18px;
    line-height: 1.5;
}

.btn-empty-action {
    margin: 0 auto;
}

/* ========================================================= */
/* Dismissable Modals System                                */
/* ========================================================= */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.15s ease;
    padding: 16px;
}

.modal-backdrop.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 600px;
    max-width: 100%;
    max-height: 90vh;
    box-shadow: var(--shadow-modal);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b1120;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-icon-badge {
    width: 28px;
    height: 28px;
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.modal-title-group h3 {
    font-size: 14px;
    font-weight: 600;
    color: #f8fafc;
}

.modal-title-group p {
    font-size: 11px;
    color: var(--text-muted);
}

.modal-close-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 18px;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
}

.modal-close-btn:hover {
    background: #1e293b;
    color: #f8fafc;
}

.modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

.modal-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #0b1120;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.label-with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.label-with-action label {
    margin-bottom: 0;
}

.btn-text-action {
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-text-action:hover {
    background: rgba(6, 182, 212, 0.1);
}

.form-group input[type="text"] {
    width: 100%;
    background: #090d16;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 12px;
    font-family: var(--font-ui);
    transition: all 0.15s ease;
}

.form-group input[type="text"]:focus {
    border-color: #3b82f6;
}

.input-with-badge {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-badge input {
    padding-right: 110px;
    font-family: var(--font-mono) !important;
}

.input-tag {
    position: absolute;
    right: 8px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    background: #1e293b;
    color: #94a3b8;
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid #334155;
    pointer-events: none;
}

.hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Radio Cards */
.radio-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.radio-option {
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.option-card {
    border: 1px solid var(--border-color);
    background: #090d16;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.option-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.option-desc {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
}

.radio-option input:checked + .option-card {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

/* Custom Checkboxes */
.checkbox-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #090d16;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox input {
    display: none;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.custom-checkbox input:checked + .checkbox-box {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.custom-checkbox input:checked + .checkbox-box::after {
    content: "✓";
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
}

.checkbox-text strong {
    font-size: 12px;
    color: var(--text-primary);
}

.checkbox-text small {
    font-size: 11px;
    color: var(--text-muted);
}

/* Build Result Cards */
.build-result-card {
    margin-top: 14px;
    background: #090d16;
    border: 1px solid #10b981;
    border-radius: var(--radius-sm);
    padding: 14px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-icon {
    width: 20px;
    height: 20px;
    background: #10b981;
    color: #ffffff;
    border-radius: var(--radius-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.result-title h4 {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.built-name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #34d399;
}

.status-tag-ready {
    font-size: 10px;
    font-weight: 600;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-xs);
    border: 1px solid rgba(16, 185, 129, 0.3);
    letter-spacing: 0.3px;
}

.deploy-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deploy-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    position: relative;
}

.deploy-card.highlight {
    background: #0f172a;
    border-color: #10b981;
}

.deploy-card-tag {
    font-size: 9px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.deploy-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.file-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.file-badge.exe {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.file-badge.ps {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.deploy-card-header h5 {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.deploy-card-header p {
    font-size: 11px;
    color: var(--text-muted);
}

.code-snippet-box {
    display: flex;
    gap: 8px;
}

.code-snippet-box input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: #93c5fd;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    outline: none;
}

.btn-copy {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #3b82f6;
}

.deploy-card-sublinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 6px;
}

.sublink-btn {
    font-size: 11px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
}

.sublink-btn:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.sublink-separator {
    color: var(--text-muted);
    font-size: 10px;
}

.modal-footer {
    padding: 16px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ========================================================= */
/* Integrated HVNC Fullscreen Window & HUD                  */
/* ========================================================= */
.hvnc-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    z-index: 200;
    flex-direction: column;
}

.hvnc-modal-backdrop.active {
    display: flex;
}

.hvnc-modal-window {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

/* Top Command Ribbon */
.hvnc-top-bar {
    height: 62px;
    background: rgba(14, 21, 38, 0.95);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.hvnc-title-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-pulse-badge {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.recording-dot {
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    animation: livePulse 1s infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.85); }
}

.hvnc-meta-group h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.hvnc-meta-text {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* App Launcher Dock */
.hvnc-app-dock {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dock-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 4px;
    letter-spacing: 0.5px;
}

.dock-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dock-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

.dock-btn.chrome:hover {
    border-color: #f59e0b;
}

.dock-btn.edge:hover {
    border-color: #38bdf8;
}

.dock-icon {
    font-size: 13px;
}

.hvnc-window-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.display-mode-group {
    display: inline-flex;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 2px;
}

.btn-mode {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-mode:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-mode.active {
    background: var(--accent-blue);
    color: #ffffff;
    box-shadow: 0 1px 6px rgba(56, 189, 248, 0.35);
}

.stream-stats {
    display: flex;
    gap: 6px;
}

.stat-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-dark);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.btn-hvnc-action {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-hvnc-action:hover {
    color: #ffffff;
    border-color: var(--accent-blue);
    background: var(--bg-card-hover);
}

.btn-close-hvnc {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-close-hvnc:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

/* Canvas Virtual Display Area */
.hvnc-canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #030712;
    overflow: hidden;
    padding: 12px;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.canvas-viewport {
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

#hvncCanvas {
    display: block;
    outline: none;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M4 2 L4 20 L8.5 15.5 L12.5 23.5 L15.5 22 L11.5 14 L18 14 Z' fill='%23FFFFFF' stroke='%23000000' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0, default !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Native Fullscreen adjustments */
:fullscreen .hvnc-canvas-container,
.hvnc-modal-backdrop:fullscreen .hvnc-canvas-container {
    padding: 0;
}

:fullscreen .canvas-viewport,
.hvnc-modal-backdrop:fullscreen .canvas-viewport {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.click-to-focus {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.focus-bubble {
    background: rgba(14, 21, 38, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.focus-icon {
    font-size: 14px;
}

.focus-key-hint {
    color: var(--text-muted);
    font-size: 11px;
    border-left: 1px solid var(--border-color);
    padding-left: 10px;
    margin-left: 4px;
}

/* ========================================================= */
/* Toast Notification System                                */
/* ========================================================= */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(14, 21, 38, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    min-width: 320px;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.2s ease;
}

.toast.removing {
    opacity: 0;
    transform: translateX(50px);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    font-size: 18px;
}

.toast-text {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.toast-message {
    font-size: 11px;
    color: var(--text-secondary);
}

.toast-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
}

.toast-close:hover {
    color: #ffffff;
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.info { border-color: rgba(59, 130, 246, 0.5); }
.toast.warning { border-color: rgba(245, 158, 11, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }
