* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: #1a1a2e;
    padding: 30px;
    border-radius: 15px;
}

h1 {
    color: #25D366;
    margin-bottom: 20px;
    font-size: 28px;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141428;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.stopped { background: #ff4757; }
.dot.starting { background: #ffa502; animation: blink 1s infinite; }
.dot.paired { background: #2ed573; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

button {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    transform: translateY(-2px);
}

#startBtn { background: #25D366; color: white; }
#stopBtn { background: #ff4757; color: white; }
#restartBtn { background: #3498db; color: white; }
button:last-child { background: #2a2a4a; color: #a0a0c0; }

.pairing-box {
    background: #141428;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #25D366;
    margin-bottom: 20px;
}

.pairing-box h3 {
    color: #25D366;
    margin-bottom: 10px;
}

.code {
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    color: #25D366;
    background: #0a0a1a;
    padding: 15px;
    border-radius: 8px;
    letter-spacing: 5px;
    font-family: monospace;
    margin: 10px 0;
}

.pairing-box p {
    color: #8888aa;
    font-size: 13px;
    text-align: center;
}

.logs {
    background: #141428;
    padding: 15px;
    border-radius: 10px;
}

.logs h3 {
    margin-bottom: 10px;
    color: #8888aa;
}

#logs {
    background: #0a0a1a;
    padding: 10px;
    border-radius: 8px;
    height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 12px;
}

#logs::-webkit-scrollbar {
    width: 5px;
}
#logs::-webkit-scrollbar-thumb {
    background: #2a2a4a;
    border-radius: 3px;
}

.log {
    padding: 3px 0;
    border-bottom: 1px solid #0a0a1a;
    color: #c0c0e0;
}

.log.success { color: #2ed573; }
.log.error { color: #ff4757; }
.log.warning { color: #ffa502; }

.log-empty {
    color: #4a4a6a;
    text-align: center;
    padding: 40px 0;
}