:root {
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --success: #00b894;
    --danger: #e74c3c;
    --text: #f5f5f5;
    --text-muted: #888;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

header {
    text-align: center;
    padding: 30px 0;
}

header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    margin-top: 8px;
}

/* Screens */
.screen {
    flex: 1;
    display: none;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

.hidden {
    display: none !important;
}

/* Login */
.login-form {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.login-form h2 {
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.login-form input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.2rem;
    text-align: center;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 12px;
    color: var(--text);
    letter-spacing: 8px;
    margin-bottom: 20px;
}

.login-form input:focus {
    outline: none;
    border-color: var(--accent-light);
}

.error {
    color: var(--danger);
    margin-top: 10px;
}

/* Status */
.status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status.disconnected {
    background: rgba(231, 76, 60, 0.2);
}

.status.disconnected .dot {
    background: var(--danger);
}

.status.connecting {
    background: rgba(241, 196, 15, 0.2);
}

.status.connecting .dot {
    background: #f1c40f;
}

.status.connected {
    background: rgba(0, 184, 148, 0.2);
}

.status.connected .dot {
    background: var(--success);
}

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

/* Transcript */
.transcript {
    flex: 1;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    overflow-y: auto;
    margin-bottom: 20px;
    min-height: 200px;
}

.transcript .placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
}

.transcript .message {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 12px;
    max-width: 85%;
}

.transcript .message.user {
    background: var(--accent);
    margin-left: auto;
}

.transcript .message.agent {
    background: rgba(255, 255, 255, 0.1);
    margin-right: auto;
}

/* Buttons */
.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn.primary {
    background: var(--accent);
    color: white;
}

.btn.primary:hover {
    background: var(--accent-light);
}

.btn.danger {
    background: var(--danger);
    color: white;
}

.btn.large {
    padding: 20px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    width: 100%;
}

.btn.large .icon {
    font-size: 1.5rem;
}

/* Controls */
.controls {
    margin-top: auto;
    padding: 20px 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}
