/* Dark Mode Theme */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --bg-card: #1e1e1e;
    
    --text-primary: #e4e4e4;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --accent-primary: #00d4aa;
    --accent-secondary: #00b894;
    --accent-warning: #fdcb6e;
    --accent-danger: #ff6b6b;
    --accent-info: #74b9ff;
    
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Utilities */
.hidden { display: none !important; }

/* Login Screen */
#login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.login-container {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.login-container h1 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--accent-primary);
}

#login-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

#login-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

#login-form button {
    width: 100%;
    padding: 1rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#login-form button:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.error {
    color: var(--accent-danger);
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: pulse 2s infinite;
}

.status.offline::before {
    background: var(--accent-danger);
}

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

#logout-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

#logout-btn:hover {
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.tab:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

/* Main Content */
main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

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

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

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

/* Placeholder */
.placeholder {
    background: var(--bg-card);
    padding: 4rem 2rem;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

.placeholder p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.placeholder .subtitle {
    font-size: 0.9rem;
}

/* Control Panel */
.control-panel {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.input-row input {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.input-row input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.btn-primary {
    padding: 0.75rem 2rem;
    background: var(--accent-primary);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-secondary);
}

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

.btn-danger {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-danger);
    border-radius: 8px;
    color: var(--accent-danger);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover:not(:disabled) {
    background: var(--accent-danger);
    color: var(--bg-primary);
}

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

.btn-small {
    padding: 0.4rem 0.8rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-small:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Progress Section */
#progress-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

#progress-account {
    font-weight: 600;
    color: var(--accent-primary);
}

#progress-percent {
    font-weight: 700;
    font-size: 1.2rem;
}

.progress-bar-container {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-details {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Current Video */
.current-video {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.current-video h3 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

#video-title {
    flex: 1;
    min-width: 300px;
    color: var(--text-primary);
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Logs Section */
.logs-section {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.logs-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.logs-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#log-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.logs-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.85rem;
    background: var(--bg-primary);
}

.log-entry {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.log-time {
    color: var(--text-muted);
    white-space: nowrap;
}

.log-level {
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 50px;
    text-align: center;
}

.log-level.INFO { background: rgba(0, 212, 170, 0.2); color: var(--accent-primary); }
.log-level.WARN { background: rgba(253, 203, 110, 0.2); color: var(--accent-warning); }
.log-level.ERROR { background: rgba(255, 107, 107, 0.2); color: var(--accent-danger); }

.log-message {
    color: var(--text-primary);
    word-break: break-word;
}

.log-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Active Job Banner */
.active-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 184, 148, 0.1));
    border: 1px solid var(--accent-primary);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(0, 212, 170, 0.2); }
    to { box-shadow: 0 0 20px rgba(0, 212, 170, 0.4); }
}

.banner-icon {
    font-size: 2rem;
}

.banner-content {
    flex: 1;
}

.banner-title {
    font-weight: 600;
    color: var(--accent-primary);
}

.banner-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.banner-progress {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.active-job {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
}

.active-job .pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Progress Card */
.progress-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-account {
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.progress-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.progress-percent {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.progress-details {
    display: flex;
    justify-content: space-between;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Current Video */
.current-video {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.video-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.video-icon {
    font-size: 1.5rem;
}

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

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

.system-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.system-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.system-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.system-icon {
    font-size: 1.5rem;
}

.system-title {
    font-weight: 600;
    color: var(--text-secondary);
}

.system-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.system-bar {
    background: var(--bg-secondary);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.system-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.cpu .system-bar-fill { background: linear-gradient(90deg, #ff6b6b, #fdcb6e); }
.memory .system-bar-fill { background: linear-gradient(90deg, #74b9ff, #0984e3); }
.disk .system-bar-fill { background: linear-gradient(90deg, #a29bfe, #6c5ce7); }
.network .system-bar-fill { background: linear-gradient(90deg, #00d4aa, #00b894); }

.system-detail {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.network-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Process Section */
.process-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.process-section h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.process-list {
    max-height: 200px;
    overflow-y: auto;
}

.process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.process-name {
    font-weight: 500;
    color: var(--text-primary);
}

.process-cpu, .process-memory {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.process-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 1rem;
}

/* Server Info */
.server-info {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.server-info h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Quick Actions */
.quick-actions {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-top: 2rem;
}

.quick-actions h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Logs */
.log-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.logs-title {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Activity Stream */
.activity-stream {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.activity-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.activity-container {
    max-height: 250px;
    overflow-y: auto;
    padding: 0.75rem;
    background: var(--bg-primary);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.activity-item.fetching { background: rgba(116, 185, 255, 0.1); border-left: 3px solid var(--accent-info); }
.activity-item.downloading { background: rgba(253, 203, 110, 0.1); border-left: 3px solid var(--accent-warning); }
.activity-item.extracting { background: rgba(0, 212, 170, 0.1); border-left: 3px solid var(--accent-primary); }
.activity-item.success { background: rgba(0, 212, 170, 0.1); border-left: 3px solid var(--accent-primary); }
.activity-item.error { background: rgba(255, 107, 107, 0.1); border-left: 3px solid var(--accent-danger); }

.activity-time {
    font-family: 'Monaco', 'Consolas', monospace;
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}

.activity-icon {
    font-size: 1rem;
}

.activity-message {
    color: var(--text-primary);
    flex: 1;
    word-break: break-word;
}

.activity-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

/* Session Stats */
.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.session-stat {
    text-align: center;
}

.session-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.session-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.session-stat.success .session-value { color: var(--accent-primary); }
.session-stat.error .session-value { color: var(--accent-danger); }

/* Current Video Card */
.current-video {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.current-video-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.current-video-icon {
    font-size: 2rem;
}

.current-video-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.current-video-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.current-video-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cv-progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.cv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.current-video-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Banner Stats */
.banner-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.banner-stats span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

#banner-progress {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.banner-status {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.current-video.hidden, .session-stats.hidden, .active-banner.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .input-row input,
    .btn-primary,
    .btn-danger {
        width: 100%;
    }
    
    main {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .video-info {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Debug Panel */
.debug-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: #0d0d0d;
    border-top: 2px solid var(--accent-primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.debug-panel.hidden {
    display: none !important;
}

.debug-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.debug-header span {
    font-weight: 600;
    color: var(--accent-primary);
}

.debug-controls {
    display: flex;
    gap: 0.5rem;
}

.debug-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.debug-line {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

.debug-line.error { color: var(--accent-danger); }
.debug-line.warn { color: var(--accent-warning); }
.debug-line.info { color: var(--accent-primary); }
.debug-line.success { color: var(--accent-secondary); }
.debug-line.data { color: var(--accent-info); }

.debug-line .time {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.debug-line .type {
    display: inline-block;
    width: 60px;
    font-weight: 600;
}

.debug-line .message {
    word-break: break-all;
}

.connection-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.85rem;
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-danger);
}

.connection-dot.connected {
    background: var(--accent-primary);
    animation: pulse 1.5s infinite;
}
