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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0e0e10;
    color: #efeff1;
    min-height: 100vh;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 20px;
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 24px;
    color: #bf94ff;
}

p {
    color: #adadb8;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: #9147ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: #772ce8;
}

.btn:disabled {
    background: #3a3a3d;
    cursor: not-allowed;
}

.btn-danger {
    background: #eb0400;
}

.btn-danger:hover {
    background: #c00;
}

.controls {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-group label {
    font-size: 12px;
    color: #adadb8;
}

select {
    padding: 8px 12px;
    background: #1f1f23;
    color: #efeff1;
    border: 1px solid #3a3a3d;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.video-container {
    display: flex;
    gap: 16px;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.video-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-box label {
    font-size: 12px;
    color: #adadb8;
    text-align: center;
}

.video-box video {
    width: 480px;
    height: 270px;
    background: #1f1f23;
    border-radius: 4px;
    border: 1px solid #3a3a3d;
    object-fit: contain;
}

#status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1f1f23;
    border-radius: 4px;
    width: 100%;
    max-width: 800px;
}

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

.status-dot.connected {
    background: #00e676;
}

.status-dot.connecting {
    background: #ffab40;
    animation: pulse 1s infinite;
}

.status-dot.disconnected {
    background: #eb0400;
}

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

#status-text {
    font-size: 13px;
    font-weight: 600;
}

.prompt-display {
    font-size: 12px;
    color: #bf94ff;
    margin-left: auto;
}

.log {
    width: 100%;
    max-width: 800px;
    max-height: 200px;
    overflow-y: auto;
    background: #18181b;
    border: 1px solid #3a3a3d;
    border-radius: 4px;
    padding: 8px;
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: 11px;
    color: #adadb8;
}

.log-entry {
    padding: 2px 0;
    border-bottom: 1px solid #1f1f23;
}

.log-entry.error {
    color: #eb0400;
}

.log-entry.success {
    color: #00e676;
}
