/* Voice Agent Professional Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --dark-bg: #0a0b1e;
    --dark-secondary: #141529;
    --dark-tertiary: #1c1d33;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --accent-blue: #4a9eff;
    --accent-purple: #9333ea;
    --accent-pink: #ec4899;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: floatingGradient 20s ease infinite;
}

@keyframes floatingGradient {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(120deg); }
    66% { transform: translate(20px, -10px) rotate(240deg); }
}

/* Professional Header */
.voice-agent-header {
    background: rgba(20, 21, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.industry-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark-tertiary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.industry-selector label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.industry-dropdown {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.header-right {
    display: flex;
    gap: 1rem;
}

.btn-customize,
.btn-analytics {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-customize:hover,
.btn-analytics:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Main Container */
.voice-agent-main {
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.agent-container {
    display: grid;
    grid-template-columns: 380px 1fr 380px;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}

/* Voice Panel */
.voice-panel {
    background: var(--dark-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.voice-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.status-dot.active {
    background: #f59e0b;
    animation: pulse 1s infinite;
}

.status-dot.speaking {
    background: #3b82f6;
    animation: pulse 0.5s infinite;
}

/* Voice Visualization */
.voice-visualization {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.ai-avatar {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    opacity: 0.3;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: var(--accent-blue);
    animation: rotate 10s linear infinite;
}

.ring-2 {
    width: 85%;
    height: 85%;
    border-color: var(--accent-purple);
    animation: rotate 15s linear infinite reverse;
}

.ring-3 {
    width: 70%;
    height: 70%;
    border-color: var(--accent-pink);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-core {
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    z-index: 1;
    transition: var(--transition);
}

.ai-avatar.listening .avatar-core {
    animation: glow 1s ease-in-out infinite alternate;
}

.ai-avatar.speaking .avatar-core {
    animation: glow 0.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5); }
    to { box-shadow: 0 10px 60px rgba(102, 126, 234, 0.8); }
}

.waveform-container {
    width: 100%;
    height: 80px;
    background: var(--dark-tertiary);
    border-radius: 12px;
    padding: 1rem;
    display: none;
}

.waveform-container.active {
    display: block;
}

/* Voice Controls */
.voice-controls {
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1rem;
}

/* Conversation Mode Indicator */
.conversation-mode-indicator {
    margin: 0 2rem 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    }
    50% { 
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
    }
}

.mode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.mode-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.mode-text {
    font-weight: 600;
    color: #10b981;
    font-size: 1rem;
}

.mode-hint {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.voice-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.voice-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.voice-btn.stop {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.voice-btn.stop:hover {
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
}

/* Quick Actions */
.quick-actions {
    padding: 0 2rem 2rem;
}

.quick-actions h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scenario-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scenario-btn {
    padding: 0.875rem;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.scenario-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(4px);
}

/* Conversation Panel */
.conversation-panel {
    background: var(--dark-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.conversation-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.conversation-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.conversation-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

/* Chat/Voice Conversation Content */
.conversation-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.welcome-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0.5;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.welcome-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.welcome-subtitle {
    color: var(--accent-blue);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.usage-instructions {
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 500px;
    text-align: left;
}

.usage-instructions h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-align: center;
}

.instruction-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.instruction-item:last-child {
    margin-bottom: 0;
}

.instruction-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.instruction-item strong {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.instruction-item div {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.welcome-note {
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-note strong {
    color: var(--accent-blue);
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 1rem;
    animation: slideIn 0.3s ease;
}

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

.message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message.ai .message-avatar {
    background: var(--primary-gradient);
}

.message.user .message-avatar {
    background: var(--secondary-gradient);
}

.message-bubble {
    max-width: 70%;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    position: relative;
}

.message.ai .message-bubble {
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message.user .message-bubble {
    background: var(--primary-gradient);
    border-bottom-right-radius: 4px;
}

.message-text {
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.message.user .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Chat Input */
.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--dark-tertiary);
}

.input-status {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

.input-status.recording {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.input-status.processing {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.status-icon {
    width: 12px;
    height: 12px;
    background: #4a9eff;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.input-status.recording .status-icon {
    background: #ef4444;
}

.input-status.processing .status-icon {
    background: #fbbf24;
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: var(--dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.input-actions {
    display: flex;
    gap: 0.5rem;
}

.input-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 24px;
    position: relative;
}

.input-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.input-btn:hover::after {
    opacity: 1;
}

.send-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.send-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.voice-input-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.voice-input-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.voice-input-btn.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: recordPulse 1s infinite;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
}

.voice-input-btn.recording::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    animation: recordDot 1s infinite;
}

@keyframes recordDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes recordPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Conversation Metrics */
.conversation-metrics {
    padding: 1.5rem;
    background: var(--dark-tertiary);
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.metric-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--dark-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.metric-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-blue);
}

/* Config Panel */
.config-panel {
    background: var(--dark-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.config-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.config-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.config-content {
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.config-section {
    margin-bottom: 2rem;
}

.config-section h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.config-group {
    margin-bottom: 1.25rem;
}

.config-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.config-select,
.config-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
    outline: none;
    transition: var(--transition);
}

.config-select:focus,
.config-textarea:focus {
    border-color: var(--accent-blue);
}

.config-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.config-slider {
    width: 100%;
    margin-top: 0.5rem;
}

.slider-value {
    display: inline-block;
    margin-left: 1rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.btn-save-config {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-save-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Features Section */
.features-section {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.features-section h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.feature-item i {
    color: #10b981;
    font-size: 18px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--dark-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.modal-content.large {
    max-width: 1200px;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kpi-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.kpi-content {
    flex: 1;
}

.kpi-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.kpi-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.kpi-trend {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.kpi-trend.positive {
    color: #10b981;
}

.kpi-trend.negative {
    color: #ef4444;
}

/* Charts Container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-box {
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Customize Form */
.customize-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    padding: 0.875rem;
    background: var(--dark-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.btn-apply {
    padding: 1rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .agent-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Stack panels vertically instead of hiding */
    .voice-panel {
        order: 1;
        display: block !important;
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
    
    .conversation-panel {
        order: 2;
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }
    
    .config-panel {
        order: 3;
        display: block !important;
        max-width: 900px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .conversation-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
.loading-dots {
    display: inline-flex;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.75rem 1rem;
    background: var(--dark-tertiary);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}