:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-glow: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --core-size: 120px;
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow: hidden;
    height: 100dvh;
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-family: var(--font-mono);
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-indicator {
    font-size: 0.65rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

#connection-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visualizer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    transition: var(--transition-smooth);
}

.voice-core {
    position: relative;
    width: var(--core-size);
    height: var(--core-size);
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-smooth);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    z-index: 1;
}

.ring-1 {
    animation: pulse 4s infinite linear;
}

.ring-2 {
    animation: pulse 4s infinite linear 2s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

.interaction-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.input-area {
    position: absolute;
    bottom: 40px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.text-input {
    flex: 1;
    min-height: 80px;
    max-height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.text-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.text-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.text-input.listening {
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.input-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.action-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.action-button.copied {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

footer {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.mic-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.mic-button:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

.mic-button.active {
    background: #fff;
    color: #000;
    box-shadow: 0 0 30px #fff;
}

/* UI States */
body.listening .core-inner {
    transform: scale(1.1);
}

body.thinking .core-inner {
    animation: breathe 2s infinite ease-in-out;
}

@keyframes breathe {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        filter: radial-gradient(circle, #fff, #888);
    }

    50% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}