:root {
  --bg-color: #0d0e12;
  --card-bg: rgba(255, 255, 255, 0.05);
  --accent-color: #4f46e5;
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --primary: #3b82f6;
  --panel-bg: #1e293b;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
}

.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(0,0,0,0.2);
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.sidebar h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #4f46e5, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  background: var(--card-bg);
  color: white;
}

.nav-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-left: 1rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
}

.nav-logout {
  margin-top: auto !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.1);
}

.nav-logout:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #ff8a8a !important;
}

.main-content {
  padding: 2rem;
  overflow-y: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-dim);
}

.panel {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  padding-bottom: 1rem;
}

td {
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-online { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.badge-offline { background: rgba(239, 68, 68, 0.2); color: var(--error); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: var(--warning); }

.btn {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  background: var(--primary);
  color: white;
  transition: all 0.2s;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--panel-bg);
    padding: 2rem;
    border-radius: 1rem;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dim);
    font-size: 0.875rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
}
.vnc-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(255,255,255,0.05);
}
.vnc-status.connected { color: var(--success); }
.vnc-status.connecting { color: var(--warning); animation: pulse 1.5s infinite; }
.vnc-status.disconnected { color: var(--text-dim); }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Sidebar Selector */
.sidebar-selector-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-selector-container label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.sidebar-select {
    width: 100%;
    padding: 0.6rem;
    background: var(--bg-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.sidebar-select:hover {
    border-color: var(--accent-color);
}

.badge-warning { 
    background: rgba(245, 158, 11, 0.1); 
    color: #f59e0b; 
    border: 1px solid rgba(245, 158, 11, 0.2); 
    display: inline-block;
}

#terminal-container {
    background: #000;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

#terminal-container .xterm {
    padding: 4px;
}

.badge-offline { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.badge-online { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }

/* Password visibility toggle */
.password-field {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-field input {
    padding-right: 2.5rem !important;
    width: 100%;
    box-sizing: border-box;
}

.eye-btn {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}

.eye-btn:hover {
    color: white;
}

.eye-btn svg {
    width: 18px;
    height: 18px;
}

/* ══════════════════════════════════════════
   LOG ANALYZER STYLES
══════════════════════════════════════════ */

/* ── Overview progress bar ──────────────────── */
.logs-progress-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: opacity 0.6s ease;
}

.logs-progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    overflow: hidden;
}

.logs-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 2px;
    transition: width 0.35s ease;
}

.logs-progress-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: nowrap;
    min-width: 160px;
}

/* ── Card scanning skeleton state ────────────── */
.logs-overview-card.scanning {
    cursor: default;
    opacity: 0.7;
    animation: cardPulse 1.5s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.45; }
}

.logs-card-scanning-text {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Mini card spinner */
.logs-card-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255,255,255,0.15);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* ── Card log snippet preview ───────────────── */
.logs-card-snippet {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.logs-snippet-line {
    font-family: 'Courier New', monospace;
    font-size: 0.64rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

/* ── Viewer fetch progress ──────────────────── */
.logs-fetch-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.logs-fetch-progress-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.logs-fetch-bar-track {
    height: 3px;
    background: rgba(255,255,255,0.07);
    border-radius: 2px;
    overflow: hidden;
}

.logs-fetch-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 2px;
    transition: width 0.2s ease;
}

/* ── Diagnostic "not found / error" panel ── */
.logs-diag-panel {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 2rem;
    margin: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
}

.logs-diag-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.logs-diag-content {
    flex: 1;
}

.logs-diag-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem;
}

.logs-diag-detail {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 0 0 0.75rem;
}

.logs-diag-paths {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.logs-diag-path {
    font-family: 'Courier New', monospace;
    font-size: 0.78rem;
    color: #a5b4fc;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    display: inline-block;
}

.logs-diag-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    border-left: 3px solid rgba(255,255,255,0.1);
    line-height: 1.6;
}

/* Source Tabs */
.logs-source-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logs-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.logs-tab-btn:hover {
    background: rgba(255,255,255,0.07);
    color: white;
}

.logs-tab-btn.active {
    background: rgba(79,70,229,0.25);
    border-color: #4f46e5;
    color: white;
}

.logs-tab-icon { font-size: 1rem; }

/* Overview Grid */
.logs-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.logs-overview-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.logs-overview-card:hover {
    border-color: rgba(79,70,229,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.logs-overview-card.has-errors { border-left: 3px solid #ef4444; }
.logs-overview-card.has-warnings { border-left: 3px solid #f59e0b; }
.logs-overview-card.healthy { border-left: 3px solid #10b981; }
.logs-overview-card.unavailable { opacity: 0.5; }

.logs-overview-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.logs-overview-icon { font-size: 1.2rem; }

.logs-overview-label {
    font-size: 0.875rem;
    font-weight: 600;
    flex: 1;
}

.logs-overview-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-healthy { background: #10b981; box-shadow: 0 0 6px #10b981; }
.status-has-errors { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.status-has-warnings { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.status-unavailable { background: #4b5563; }

.logs-overview-stats {
    display: flex;
    gap: 0.75rem;
}

.logs-overview-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-lbl {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

.stat-error .stat-num { color: #f87171; }
.stat-warning .stat-num { color: #f59e0b; }

.logs-not-found {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-style: italic;
}

/* Overview Loading */
.logs-overview-loading {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--text-dim);
    grid-column: 1/-1;
}

/* Spinner */
.logs-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.1);
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toolbar */
.logs-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.logs-viewer-title {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    white-space: nowrap;
}

.logs-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.logs-filter-input {
    padding: 0.35rem 0.75rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    min-width: 200px;
    transition: border-color 0.2s;
}

.logs-filter-input:focus {
    outline: none;
    border-color: #4f46e5;
}

.logs-filter-select {
    padding: 0.35rem 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Stats Bar */
.logs-stats-bar {
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 0.25rem 0.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
}

/* Content Layout */
.logs-content-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1rem;
    align-items: start;
    min-height: 400px;
}

/* Log Entries */
.logs-entries-body {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    max-height: calc(100vh - 340px);
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.55;
}

.logs-entry {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: background 0.1s;
    flex-wrap: wrap;
}

.logs-entry:hover { background: rgba(255,255,255,0.04); }

.logs-entry-access { background: rgba(255,255,255,0.01); }

.logs-ts {
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.7rem;
}

.logs-method {
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    white-space: nowrap;
}

.method-GET    { background: rgba(96,165,250,0.15); color: #60a5fa; }
.method-POST   { background: rgba(52,211,153,0.15); color: #34d399; }
.method-PUT    { background: rgba(251,191,36,0.15);  color: #fbbf24; }
.method-DELETE { background: rgba(239,68,68,0.15);   color: #ef4444; }
.method-PATCH  { background: rgba(167,139,250,0.15); color: #a78bfa; }
.method-HEAD   { background: rgba(156,163,175,0.15); color: #9ca3af; }

.logs-status {
    font-weight: 700;
    font-size: 0.72rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    white-space: nowrap;
}

.status-2xx { background: rgba(16,185,129,0.15); color: #10b981; }
.status-3xx { background: rgba(96,165,250,0.15); color: #60a5fa; }
.status-4xx { background: rgba(245,158,11,0.15); color: #f59e0b; }
.status-5xx { background: rgba(239,68,68,0.2);   color: #ef4444; }

.logs-ip {
    color: #6ee7b7;
    font-size: 0.7rem;
    white-space: nowrap;
}

.logs-path {
    color: var(--text-dim);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.logs-bytes {
    color: #4b5563;
    font-size: 0.65rem;
    white-space: nowrap;
}

.logs-process {
    color: #818cf8;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.logs-level-badge {
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.logs-msg {
    color: var(--text-dim);
    flex: 1;
    word-break: break-all;
    min-width: 0;
}

/* Loading/empty states */
.logs-loading,
.logs-not-found-msg,
.logs-error-msg,
.logs-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-dim);
    text-align: center;
}

.logs-loading {
    flex-direction: row;
    font-size: 0.9rem;
}

.logs-not-found-msg span { font-size: 2rem; }
.logs-not-found-msg p { font-size: 1rem; margin: 0; color: var(--text-main); }
.logs-not-found-msg small { font-size: 0.8rem; }
.logs-error-msg { color: #f87171; font-size: 0.9rem; }
.logs-error { color: #f87171; padding: 1rem; }

/* Load More */
.logs-load-more {
    display: flex;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Analytics Panel */
.logs-analytics-panel {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1rem;
    position: sticky;
    top: 1rem;
}

.logs-analytics-section {
    margin-bottom: 1.5rem;
}

.logs-analytics-section:last-child { margin-bottom: 0; }

.logs-analytics-section h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin: 0 0 0.75rem;
    font-weight: 600;
}

/* Level bars */
.logs-level-bars { display: flex; flex-direction: column; gap: 0.4rem; }

.logs-level-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logs-level-label {
    font-size: 0.7rem;
    font-weight: 600;
    width: 55px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.logs-level-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 3px;
    overflow: hidden;
}

.logs-level-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.logs-level-count {
    font-size: 0.7rem;
    color: var(--text-dim);
    width: 35px;
    text-align: right;
}

/* Status Code Pills */
.logs-status-pills {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.logs-status-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Top Lists */
.logs-top-list { display: flex; flex-direction: column; gap: 0.35rem; }

.logs-top-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.logs-top-rank {
    color: var(--text-dim);
    width: 20px;
    flex-shrink: 0;
    font-weight: 600;
}

.logs-top-value {
    flex: 1;
    color: #a5b4fc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-family: 'Courier New', monospace;
}

.logs-path-value { color: #6ee7b7; }

.logs-top-count {
    color: var(--text-dim);
    font-weight: 600;
    white-space: nowrap;
}

/* Hourly Chart */
.logs-hourly-chart {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logs-hourly-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logs-hourly-time {
    font-size: 0.65rem;
    color: var(--text-dim);
    width: 35px;
    flex-shrink: 0;
}

.logs-hourly-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 2px;
}

.logs-hourly-bar-fill {
    height: 100%;
    background: #6366f1;
    border-radius: 2px;
    opacity: 0.7;
}

.logs-hourly-count {
    font-size: 0.65rem;
    color: var(--text-dim);
    width: 25px;
    text-align: right;
}

/* Browser/Dist Lists */
.logs-dist-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.logs-dist-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    display: flex;
    gap: 0.5rem;
    font-size: 0.7rem;
    align-items: center;
}

.logs-dist-label {
    color: var(--text-main);
}

.logs-dist-pct {
    color: #818cf8;
    font-weight: 600;
}

.logs-top-label {
    flex: 1;
    color: #a5b4fc;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-family: 'Courier New', monospace;
}

/* ══════════════════════════════════════════
   SYSTEM CONSOLE OVERLAY
   ══════════════════════════════════════════ */
.system-console-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35vh;
    background: rgba(13, 14, 18, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

.system-console-overlay.open {
    transform: translateY(0);
}

.system-console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    flex-shrink: 0;
}

.console-close-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    transition: color 0.2s;
}

.console-close-btn:hover {
    color: white;
}

.system-console-output {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    font-size: 0.8rem;
    line-height: 1.5;
}

.console-msg {
    padding: 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    word-break: break-all;
    display: flex;
    gap: 0.5rem;
}

.console-msg:last-child {
    border-bottom: none;
}

.console-msg-ts {
    color: var(--text-dim);
    font-size: 0.7rem;
    white-space: nowrap;
    user-select: none;
}

.console-msg-content {
    flex: 1;
}

.console-info {
    color: #a5b4fc;
}

.console-info .console-msg-content {
    color: var(--text-main);
}

.console-warn {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.console-error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

/* ── XPRA Refined Styles ──────────────────── */

.xpra-mode-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.xpra-mode-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.xpra-mode-card.active {
    background: rgba(79, 70, 229, 0.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.2);
}

.xpra-mode-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.xpra-mode-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
}

.xpra-mode-desc {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xpra-session-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
    cursor: pointer;
}

.xpra-session-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.xpra-session-row.selected {
    border-color: var(--accent-color);
    background: rgba(79, 70, 229, 0.05);
}

.xpra-session-info {
    flex: 1;
}

.xpra-session-display {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.xpra-session-status {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.xpra-session-actions {
    display: flex;
    gap: 0.5rem;
}

.xpra-env-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.xpra-env-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.xpra-env-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
}

.xpra-env-value.supported { color: var(--success); }
.xpra-env-value.unsupported { color: var(--text-dim); opacity: 0.5; }

.xpra-code-block {
    background: #000;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.xpra-code-copy {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
}
