.avi-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.avi-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.avi-header h2 {
    margin: 0;
    color: #333;
}

.avi-kb-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #007bff;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.avi-conversation {
    background: white;
    border-radius: 8px;
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.avi-message {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 8px;
    max-width: 80%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avi-user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
    text-align: right;
}

.avi-ai-message {
    background: #e9ecef;
    color: #333;
}

.avi-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.avi-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.avi-btn-primary {
    background: #007bff;
    color: white;
}

.avi-btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.avi-btn-danger {
    background: #dc3545;
    color: white;
}

.avi-btn-danger:hover {
    background: #c82333;
}

.avi-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.avi-status {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.avi-audio-player {
    text-align: center;
}

.avi-audio-player audio {
    width: 100%;
    max-width: 500px;
}

.avi-recording {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}