:root {
    --bg-dark: #050608;
    --accent-primary: #00e0ff;
    --accent-secondary: #00ff88;
    --accent-warning: #ff8a3c;
    --text-main: #f5f7fa;
    --text-soft: rgba(245, 247, 250, 0.55);
    --control-bg: rgba(255, 255, 255, 0.03);
    --control-border: rgba(255, 255, 255, 0.09);
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.devo-interface {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

header {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Aura HUD Styling */
#aura {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.aura-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.aura-core {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.5;
    transition: all 0.5s ease;
}

/* States */
.idle .aura-ring {
    border-top-color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
    opacity: 0.45;
    animation: aura-spin 3s linear infinite;
    box-shadow: 0 0 16px rgba(0, 224, 255, 0.18);
}

.thinking .aura-ring {
    border-color: var(--accent-warning);
    animation: aura-pulse 0.9s ease-in-out infinite alternate;
    box-shadow: 0 0 26px rgba(255, 138, 60, 0.45);
}
.thinking .aura-core { background: var(--accent-warning); opacity: 0.85; }

.speaking .aura-ring {
    border-color: var(--accent-secondary);
    animation: aura-spin 1.1s linear infinite, aura-pulse 0.45s ease-in-out infinite alternate;
    box-shadow: 0 0 32px rgba(0, 255, 136, 0.55);
}
.speaking .aura-core { background: var(--accent-secondary); opacity: 0.9; }

@keyframes aura-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes aura-pulse {
    from { transform: scale(0.95); opacity: 0.6; }
    to { transform: scale(1.1); opacity: 1; }
}

/* Main Chat Area - Centered & Aesthetic */
#response-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px;
    text-align: center;
    gap: 15px;
    /* Smooth gradient mask for industrial grade focus */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

#user-input-preview {
    font-size: 1rem;
    color: var(--text-soft);
    font-style: italic;
    min-height: 1.5rem;
    max-width: 80%;
    line-height: 1.4;
    transition: all 0.25s ease;
    font-weight: 300;
    margin: 0 auto 15px auto;
    text-align: center;
}

#response-text {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-main);
    max-width: 640px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

#response-text a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 224, 255, 0.3);
}

#response-text iframe {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    border: 1px solid var(--control-border);
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Footer & Controls */
footer {
    padding: 20px 0;
}

.controls-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.control-group {
    display: flex;
    gap: 10px;
}

.minimal-btn, .minimal-select {
    background: var(--control-bg);
    border: 1px solid var(--control-border);
    color: var(--text-soft);
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    outline: none;
}

.minimal-btn:hover, .minimal-select:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.minimal-btn.active {
    background: rgba(0, 224, 255, 0.12);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 18px rgba(0, 224, 255, 0.35);
}

.hidden-elements {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

/* Custom Scrollbar */
#response-container::-webkit-scrollbar { width: 3px; }
#response-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }