* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

body {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e2e8f0;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.glass-panel {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

header {
    text-align: center;
    color: white;
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.interaction-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.mic-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #334155, #1e293b);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5), -5px -5px 15px rgba(255,255,255,0.05);
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mic-btn svg {
    width: 35px;
    height: 35px;
}

.mic-btn:hover {
    transform: scale(1.05);
}

.mic-btn.recording {
    background: linear-gradient(145deg, #ff416c, #ff4b2b);
    color: white;
    animation: pulse 1.5s infinite;
}

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

.status-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.chat-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-box {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-box strong {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 0.85rem;
}

.text-content {
    font-size: 1rem;
    line-height: 1.5;
    color: #f1f5f9;
    min-height: 24px;
}

.loading {
    text-align: center;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 10px;
    animation: blink 1s infinite alternate;
}

.hidden {
    display: none;
}

@keyframes blink {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.text-input-area {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#textInput {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(30, 41, 59, 0.7);
    font-size: 1rem;
    color: #f1f5f9;
    outline: none;
    transition: all 0.3s ease;
}

#textInput:focus {
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102, 126, 234, 0.5);
}

#sendBtn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

#sendBtn:hover {
    transform: scale(1.05);
}

#sendBtn svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 480px) {
    .glass-panel {
        padding: 20px;
    }
    header h1 {
        font-size: 1.5rem;
    }
    .mic-btn {
        width: 70px;
        height: 70px;
    }
}
