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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: 20px;
    position: relative;
}

.controls-top {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.quality-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.quality-selector label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.quality-selector select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.quality-selector select option {
    background: #1a1a2e;
    color: white;
}

.silence-slider {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.silence-slider label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.silence-slider input[type="range"] {
    width: 120px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    cursor: pointer;
}

.silence-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.voice-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.voice-selector label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.voice-selector select {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.voice-selector select option {
    background: #1a1a2e;
    color: white;
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 
        0 0 30px rgba(102, 126, 234, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.1);
}


#avatarImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.input-container {
    position: absolute;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 90%;
    max-width: 500px;
}

#userInput {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 16px;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#userInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#userInput:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

#sendButton {
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#sendButton:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

#sendButton:active {
    transform: scale(0.95);
}

#sendButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

#sendButton svg {
    width: 22px;
    height: 22px;
}
