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

/* Body */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

/* Container */
.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* Card (Glassmorphism) */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 32px;
}

.header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #667eea;
}

.subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Status Section */
.status-section {
    margin-bottom: 32px;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 12px;
    gap: 12px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #999;
}

.status-indicator.connected .status-dot {
    background: #34a853;
    animation: pulse 2s infinite;
}

.status-indicator.connecting .status-dot {
    background: #fbbc04;
}

.status-indicator.error .status-dot {
    background: #ea4335;
}

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

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Visualizer */
.visualizer-section {
    margin-bottom: 32px;
}

#visualizer {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

/* Controls */
.controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}

.secondary-controls {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #ea4335;
    color: white;
}

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

.btn-icon {
    font-size: 20px;
}

/* Logs Section */
.logs-section {
    margin-top: 24px;
}

.logs-section label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

#logs {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: vertical;
    background: #f9f9f9;
}

/* Responsive */
@media (max-width: 640px) {
    .card {
        padding: 24px;
    }
    
    .header h1 {
        font-size: 36px;
    }
}
