:root {
    --primary: #00f3ff;
    --secondary: #bd00ff;
    --bg: #050510;
    --glass: rgba(255, 255, 255, 0.05);
}

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

body {
    background-color: var(--bg);
    color: var(--primary);
    font-family: 'Orbitron', 'Courier New', sans-serif; /* Fallback if font load fails */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#ai-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#face-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: drop-shadow(0 0 15px var(--primary));
}

#interface {
    width: 80%;
    max-width: 600px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

#chat-history {
    height: 200px;
    overflow-y: auto;
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.msg {
    margin-bottom: 8px;
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 80%;
}

.msg.user {
    background: rgba(189, 0, 255, 0.2);
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
    color: #fff;
}

.msg.ai {
    background: rgba(0, 243, 255, 0.1);
    align-self: flex-start;
    color: var(--primary);
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
}

button {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

button:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--primary);
}

button#mic-btn {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

button#mic-btn.active {
    background: var(--secondary);
    color: #fff;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(189, 0, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(189, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(189, 0, 255, 0); }
}

.status-text {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 5px;
}
