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

body {
    background: #0a0a0f;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#app {
    text-align: center;
    width: 100%;
}

#orb-container {
    cursor: pointer;
    display: inline-block;
    margin-bottom: 40px;
}

#orb {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

#orb.idle {
    background: radial-gradient(circle at 40% 40%, #1a3a5c, #0d1b2a);
    box-shadow: 0 0 40px rgba(30, 90, 160, 0.3), 0 0 80px rgba(30, 90, 160, 0.1);
}

#orb.listening {
    background: radial-gradient(circle at 40% 40%, #2a6cb8, #1a3a5c);
    box-shadow: 0 0 60px rgba(42, 108, 184, 0.6), 0 0 120px rgba(42, 108, 184, 0.2);
    animation: pulse-listen 1.5s ease-in-out infinite;
}

#orb.thinking {
    background: radial-gradient(circle at 40% 40%, #c9a227, #8b6914);
    box-shadow: 0 0 60px rgba(201, 162, 39, 0.5), 0 0 120px rgba(201, 162, 39, 0.15);
    animation: pulse-think 0.8s ease-in-out infinite;
}

#orb.speaking {
    background: radial-gradient(circle at 40% 40%, #27c96a, #148b3d);
    box-shadow: 0 0 60px rgba(39, 201, 106, 0.6), 0 0 120px rgba(39, 201, 106, 0.2);
    animation: pulse-speak 0.6s ease-in-out infinite;
}

@keyframes pulse-listen {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-think {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes pulse-speak {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#status {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    min-height: 20px;
}

#transcript-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#transcript-toggle {
    position: absolute;
    top: 0;
    right: 20px;
    background: transparent;
    border: 1px solid #333;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    padding: 2px 7px;
    cursor: pointer;
    z-index: 10;
    transition: border-color 0.2s, color 0.2s;
}

#transcript-toggle:hover {
    border-color: #4a9eff;
    color: #4a9eff;
}

#transcript {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    padding: 0 20px;
    transition: opacity 0.3s;
}

#transcript.hidden {
    display: none;
}

#transcript .user {
    color: #888;
    margin-bottom: 8px;
    font-size: 13px;
}

#transcript .jarvis {
    color: #4a9eff;
    margin-bottom: 16px;
    font-size: 14px;
}
