/* Modern IVR System - Professional Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow: hidden;
}





/************************************************************************/
@media (max-width: 768px) {
    /* Remove padding from all parent containers */
    .center-panel {
        padding: 0 !important;
    }
    
    .call-interface {
        padding: 0 !important;
    }
    
    .conversation-area {
        padding: 0 !important;
        gap: 0 !important;
    }
    
    .split-panel-container {
        padding: 0 !important;
        gap: 0 !important;
    }
    
    .right-side-panel {
        padding: 0 !important;
        gap: 0 !important;
    }
    
    /* Make chat messages fill the entire space */
    .chat-messages {
        padding: 10px !important;
        margin: 0 !important;
        flex: 1 !important;
    }
    
    /* Remove any bottom spacing */
    .chat-input-area {
        margin: 0 !important;
    }
}

.chat-messages::-webkit-scrollbar,
.service-options::-webkit-scrollbar {
    width: 8px;
}


/* Scrollbar styling for chat and service options */
.chat-messages::-webkit-scrollbar,
.service-options::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track,
.service-options::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.service-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.service-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8a 100%);
}






        /* Make service buttons more compact */
        .service-btn {
            min-height: 45px !important;
            padding: 10px 15px !important;
        }
        
        .service-btn-icon {
            width: 30px !important;
            height: 30px !important;
            font-size: 16px !important;
        }
        
        .service-btn-text h4 {
            font-size: 14px !important;
            margin-bottom: 2px !important;
        }
        
        .service-btn-text p {
            font-size: 11px !important;
        }

        /* Scrollbar styling for chat and service options */
        .chat-messages::-webkit-scrollbar,
        .service-options::-webkit-scrollbar {
            width: 8px;
        }

        .chat-messages::-webkit-scrollbar-track,
        .service-options::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 10px;
        }

        .chat-messages::-webkit-scrollbar-thumb,
        .service-options::-webkit-scrollbar-thumb {
            background: rgba(103, 126, 234, 0.5);
            border-radius: 10px;
        }

        .chat-messages::-webkit-scrollbar-thumb:hover,
        .service-options::-webkit-scrollbar-thumb:hover {
            background: rgba(103, 126, 234, 0.7);
        }

        /* Adjust right panel to accommodate dialpad */
        .right-panel {
            overflow-y: auto;
            max-height: calc(100vh - 80px);
        }

        .right-panel::-webkit-scrollbar {
            width: 6px;
        }

        .right-panel::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
        }

        .right-panel::-webkit-scrollbar-thumb {
            background: rgba(103, 126, 234, 0.3);
            border-radius: 10px;
        }

        /* Dialpad styling for right panel */
        .right-panel .dialpad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            margin-top: 20px;
        }

        .right-panel .dial-key {
            aspect-ratio: 1;
            background: white;
            border: 2px solid #e0e7ff;
            border-radius: 12px;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-family: 'Inter', sans-serif;
        }

        .right-panel .dial-key:hover {
            background: #667eea;
            border-color: #667eea;
            transform: scale(1.05);
        }

        .right-panel .dial-key:hover .key-number,
        .right-panel .dial-key:hover .key-letters {
            color: white;
        }

        .right-panel .key-number {
            font-size: 24px;
            font-weight: 600;
            color: #1e293b;
            line-height: 1;
        }

        .right-panel .key-letters {
            font-size: 10px;
            color: #64748b;
            margin-top: 2px;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        /* Call controls styling for right panel */
        .right-panel .call-controls {
            display: flex;
            justify-content: center;
            gap: 15px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            margin-top: 15px;
        }

        .right-panel .control-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            background: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .right-panel .control-btn svg {
            width: 24px;
            height: 24px;
            fill: #64748b;
        }

        .right-panel .control-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .right-panel .mute-btn:hover {
            background: #f59e0b;
        }

        .right-panel .mute-btn:hover svg {
            fill: white;
        }

        .right-panel .call-btn {
            background: #10b981;
        }

        .right-panel .call-btn svg {
            fill: white;
        }

        .right-panel .call-btn:hover {
            background: #059669;
        }

        .right-panel .hangup-btn {
            background: #ef4444;
        }

        .right-panel .hangup-btn svg {
            fill: white;
        }

        .right-panel .hangup-btn:hover {
            background: #dc2626;
        }

        .right-panel .speaker-btn:hover {
            background: #667eea;
        }

        .right-panel .speaker-btn:hover svg {
            fill: white;


        }

        .tts-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tts-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.tts-button:active {
    transform: scale(0.95);
}

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

.chat-message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
    text-align: right;
}

.chat-message.bot {
    background: #f0f4ff;
    color: #1e293b;
    margin-right: auto;
}

.chat-message.system {
    background: #fff4e6;
    color: #92400e;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
}

.chat-message.action {
    background: #e0f2fe;
    color: #075985;
    margin: 0 auto;
    text-align: center;
    font-size: 13px;
}
/* TTS Widget Styles */
.tts-widget {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.tts-status-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tts-status-display.loading {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #fbbf24;
}

.tts-status-display.connected {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.tts-status-display.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.tts-status-display.info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
}

.tts-status-icon {
    font-size: 24px;
    line-height: 1;
}

.tts-status-info {
    flex: 1;
}

.tts-status-title {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.tts-status-detail {
    font-size: 12px;
    color: #64748b;
}

.tts-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tts-mode-btn {
    padding: 12px;
    border: 2px solid #e0e7ff;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
}

.tts-mode-btn:hover {
    border-color: #667eea;
    background: #f8faff;
    transform: translateY(-2px);
}

.tts-mode-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tts-mode-icon {
    font-size: 20px;
    line-height: 1;
}

.tts-mode-label {
    font-size: 12px;
    font-weight: 600;
}

.tts-mode-btn.active .tts-mode-label {
    color: white;
}

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

.tts-mode-btn:disabled:hover {
    transform: none;
    border-color: #e0e7ff;
    background: white;
}


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



/* Split Panel Container */
.split-panel-container {
    display: flex;
    height: calc(100vh - 200px);
    overflow: hidden;
}

.split-panel-container.hidden {
    display: none;
}

/* Service Option Buttons */
.service-option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover {
    transform: translateX(5px);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.service-option-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.service-option-content {
    flex: 1;
}

.service-option-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.service-option-desc {
    font-size: 12px;
    color: #64748b;
}

.service-option-arrow {
    width: 24px;
    height: 24px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.service-option:hover .service-option-arrow {
    transform: translateX(5px);
    color: #667eea;
}


/******************************************************************************/





/* Dashboard Layout */
.dashboard {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
}

/* Top Navigation */
.topnav {
    height: 70px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: var(--shadow);
    z-index: 100;
}

.topnav-left {
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 45px;
    height: 45px;
    fill: var(--primary);
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.3));
}

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

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--gray-100);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--gray-600);
}

.icon-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.icon-btn:hover svg {
    fill: var(--white);
}

/* Content Grid */
.content-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 320px 1fr 300px;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}











/* Voice Recording Button - REPLACE your old voice button CSS with this */
.voice-record-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    margin-right: 8px;
}

.voice-record-btn:hover:not(:disabled) {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.voice-record-btn:active:not(:disabled) {
    transform: scale(0.95);
}

.voice-record-btn svg {
    color: white;
    transition: color 0.3s ease;
}

.voice-record-btn.recording {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: pulse-record 1.5s infinite;
}

.voice-record-btn.recording svg {
    color: white;
}

/* Disabled state - when NOT in chatbot mode */
.voice-record-btn:disabled {
    background: #e0e7ff;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

.voice-record-btn:disabled svg {
    color: #94a3b8;
}

@keyframes pulse-record {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.sound-wave-container {
    display: none;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0 20px;
    flex: 1;
    margin-right: 8px;
}

.sound-wave-container.active {
    display: flex;
}

.sound-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 100%;
}

.sound-bar {
    width: 3px;
    height: 5px;
    background: white;
    border-radius: 3px;
    transition: height 0.1s ease;
}





/*********************************************************************************/

/* Left Panel - Business Selection */
.left-panel {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.business-grid {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: grid;
    gap: 12px;
}

.business-grid::-webkit-scrollbar {
    width: 6px;
}

.business-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

.business-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.business-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.business-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}

.card-content {
    flex: 1;
    text-align: left;
}

.card-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.card-content p {
    font-size: 12px;
    color: var(--gray-500);
}

.card-badge {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* Center Panel - Call Interface */
.center-panel {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.call-interface {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.call-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.call-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-icon {
    color: var(--success);
    font-size: 20px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

.call-timer {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.conversation-area {
    flex: 1;
    overflow-y: auto;
   
    display: flex;
    flex-direction: column;
}

.welcome-message {
    text-align: center;
    padding: 60px 40px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.welcome-icon svg {
    width: 40px;
    height: 40px;
    fill: var(--white);
}

.welcome-message h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.welcome-message p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Service Menu - Visible & Styled */
.service-menu {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    animation: slideIn 0.4s ease;
}

.service-menu.active {
    display: flex;
}

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

.service-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 15px;
    color: var(--white);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.2s;
    align-self: flex-start;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.back-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.service-title h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-title p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Split Panel Layout */
.split-panel-container {
    display: grid;
    grid-template-columns: 45% 55%;
    height: 100%;
    gap: 0;
    background: var(--white);
}

.split-panel-container.hidden {
    display: none;
}




/* Left Side Panel - Services */
.left-side-panel {
    display: flex;
    flex-direction: column;
    border-right: 2px solid var(--gray-200);
    background: var(--gray-50);
    overflow-y: auto;
}

.service-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    transition: all 0.2s;
    align-self: flex-start;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-3px);
}

.back-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.service-title h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 5px;
}

.service-title p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.service-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.service-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.service-option:hover {
    border-color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.service-option:hover::before {
    transform: scaleY(1);
}

.service-option:active {
    transform: translateX(4px) scale(0.98);
}

.service-option-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.service-option-content {
    flex: 1;
    min-width: 0;
}

.service-option-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 4px;
    line-height: 1.3;
}

.service-option-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.4;
}

.service-option-arrow {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    transition: all 0.2s;
    flex-shrink: 0;
}

.service-option:hover .service-option-arrow {
    color: var(--primary);
    transform: translateX(4px);
}
/****8888888888888888888888888888888888888888888888888888888888888888888888888*/
/* Right Side Panel - Chat */
.right-side-panel {
    display: flex;
    flex-direction: column;
    background: var(--white);
    height: 100%;
}

.chat-header {
    padding: 20px;
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-header-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.chat-status {
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--gray-50);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 75%;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
    animation: messageSlideIn 0.3s ease;
}

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

.chat-message.user {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chat-message.bot {
    background: var(--white);
    color: var(--gray-900);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-message.system {
    background: #eff6ff;
    color: var(--info);
    align-self: center;
    border-left: 3px solid var(--info);
    font-size: 13px;
    max-width: 85%;
    text-align: center;
}

.chat-message.action {
    background: #f0fdf4;
    color: var(--success);
    align-self: flex-end;
    border-left: 3px solid var(--success);
    font-size: 13px;
    max-width: 85%;
    font-weight: 500;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: var(--white);
    border-top: 2px solid var(--gray-200);
}

#main-chat-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: var(--gray-50);
}

#main-chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: var(--white);
}

.main-send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.main-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.main-send-btn:active {
    transform: scale(0.95);
}

/* Business Selected State */
.business-card.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.business-card.selected .card-content h3,
.business-card.selected .card-content p {
    color: var(--white);
}

.business-card.selected .card-badge {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

.business-card.selected .card-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* Dialpad - Compact & Stylish - Hidden by default */
.dialpad {
    display: none;
    grid-template-columns: repeat(3, 70px);
    grid-template-rows: repeat(4, 70px);
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 2px solid var(--gray-200);
    justify-content: center;
}

.dialpad.active {
    display: grid;
}

.dial-key {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border: none;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dial-key::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.2s;
}

.dial-key:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dial-key:hover::before {
    opacity: 1;
}

.dial-key:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.key-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 2px;
}

.key-letters {
    font-size: 9px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1;
}

/* Call Controls - Redesigned */
.call-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    background: var(--white);
    border-top: 2px solid var(--gray-200);
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
}

.control-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
    position: relative;
    z-index: 1;
}

.mute-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.mute-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.4);
}

.mute-btn:active {
    transform: translateY(0);
}

.call-btn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4),
                0 0 0 0 rgba(16, 185, 129, 0.4);
    animation: call-pulse 2s infinite;
}

.call-btn svg {
    width: 28px;
    height: 28px;
}

.call-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5);
    animation: none;
}

@keyframes call-pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4),
                    0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4),
                    0 0 0 15px rgba(16, 185, 129, 0);
    }
}

.hangup-btn {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.hangup-btn svg {
    width: 28px;
    height: 28px;
}

.hangup-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(239, 68, 68, 0.5);
}

.hangup-btn:active {
    transform: scale(1);
}

.speaker-btn {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.speaker-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.4);
}

.speaker-btn:active {
    transform: translateY(0);
}

.speaker-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Right Panel - Info & Activity */
.right-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

/* TTS Widget */
.tts-widget {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tts-mode-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.tts-mode-btn {
    padding: 10px 12px;
    border: 2px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-700);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tts-mode-btn:hover {
    background: var(--gray-100);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.tts-mode-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tts-mode-btn svg {
    flex-shrink: 0;
}

.tts-status-display {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
    border-left: 4px solid var(--gray-300);
    transition: all 0.3s;
}

.tts-status-display.loading {
    border-left-color: var(--info);
    background: #eff6ff;
}

.tts-status-display.connected {
    border-left-color: var(--success);
    background: #f0fdf4;
}

.tts-status-display.error {
    border-left-color: var(--danger);
    background: #fef2f2;
}

.tts-status-display.info {
    border-left-color: var(--warning);
    background: #fffbeb;
}

.tts-status-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tts-status-display.loading .tts-status-icon {
    background: #dbeafe;
}

.tts-status-display.connected .tts-status-icon {
    background: #dcfce7;
}

.tts-status-display.error .tts-status-icon {
    background: #fee2e2;
}

.tts-status-display.info .tts-status-icon {
    background: #fef3c7;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--info);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.tts-status-text {
    flex: 1;
    min-width: 0;
}

.tts-status-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.tts-status-detail {
    font-size: 11px;
    color: var(--gray-600);
    line-height: 1.4;
}

.tts-status-display.connected .tts-status-icon::after {
    content: '✓';
    color: var(--success);
    font-size: 20px;
    font-weight: 700;
}

.tts-status-display.error .tts-status-icon::after {
    content: '✕';
    color: var(--danger);
    font-size: 20px;
    font-weight: 700;
}

.tts-status-display.info .tts-status-icon::after {
    content: 'ℹ';
    color: var(--warning);
    font-size: 20px;
    font-weight: 700;
}

.info-widget, .activity-widget {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.widget-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.widget-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.widget-content {
    padding: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
    margin-bottom: 10px;
}

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

.info-item svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
    flex-shrink: 0;
}

.info-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 35px;
    height: 35px;
    background: var(--gray-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.activity-details {
    flex: 1;
}

.activity-text {
    font-size: 13px;
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 11px;
    color: var(--gray-500);
}

/* Audio Overlay */
.audio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.audio-overlay.hidden {
    display: none;
}

.audio-content {
    text-align: center;
}

.audio-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    height: 150px;
    margin-bottom: 30px;
}

.audio-bar {
    width: 12px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 6px;
    animation: audio-wave 0.8s ease-in-out infinite;
}

.audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-bar:nth-child(2) { animation-delay: 0.1s; }
.audio-bar:nth-child(3) { animation-delay: 0.2s; }
.audio-bar:nth-child(4) { animation-delay: 0.3s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-bar:nth-child(6) { animation-delay: 0.5s; }
.audio-bar:nth-child(7) { animation-delay: 0.6s; }
.audio-bar:nth-child(8) { animation-delay: 0.7s; }
.audio-bar:nth-child(9) { animation-delay: 0.8s; }
.audio-bar:nth-child(10) { animation-delay: 0.9s; }

@keyframes audio-wave {
    0%, 100% { height: 20px; }
    50% { height: 120px; }
}

.audio-text {
    color: var(--white);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.audio-timer {
    color: var(--primary);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    font-variant-numeric: tabular-nums;
}

.end-call-btn {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.end-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.5);
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: right 0.3s;
}

.settings-panel:not(.hidden) {
    right: 0;
}

.settings-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-header {
    padding: 25px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-900);
}

.close-settings {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 10px;
    font-size: 24px;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}

.close-settings:hover {
    background: var(--danger);
    color: var(--white);
}

.settings-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-group select {
    width: 100%;
    padding: 12px 15px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 14px;
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.2s;
}

.setting-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 10px;
    transition: all 0.2s;
}

.toggle-label:hover {
    background: var(--gray-100);
}

.toggle-label input[type="checkbox"] {
    width: 44px;
    height: 24px;
    appearance: none;
    background: var(--gray-300);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-label input[type="checkbox"]:checked {
    background: var(--primary);
}

.toggle-label input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all 0.3s;
}

.toggle-label input[type="checkbox"]:checked::before {
    left: 23px;
}

.toggle-label span {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
}

/* Chat Interface Styling */
.chat-interface {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 15px;
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 75%;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 14px;
}

.user-message {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bot-message {
    background: var(--gray-100);
    color: var(--gray-900);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--gray-200);
}

.system-message {
    background: #eff6ff;
    color: var(--info);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border-left: 3px solid var(--info);
    font-size: 13px;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--gray-50);
    border-top: 2px solid var(--gray-200);
}

#chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background: var(--white);
}

#chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.send-btn:active {
    transform: translateY(0);
}

/* Order Interface Styling */
.order-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 20px;
}

.order-prompt {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.order-input-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

#order-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

#order-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.check-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

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

.check-btn:active {
    transform: translateY(0);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-grid {
        grid-template-columns: 280px 1fr 260px;
    }
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .left-panel {
        max-height: 250px;
    }
    
    .business-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .right-panel {
        display: none;
    }
}
@media (max-width: 768px) {
    .call-interface {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .conversation-area {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .split-panel-container {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .right-side-panel {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .chat-messages {
        padding: 10px !important;
        margin: 0 !important;
    }
}



@media (max-width: 768px) {
    .content-grid {
        padding: 10px;
        gap: 10px;
    }
    
    .topnav {
        padding: 0 15px;
    }
    
    .brand-text {
        display: none;
    }
    
    .dialpad {
        gap: 10px;
        padding: 15px;
    }
    
    .key-number {
        font-size: 20px;
    }
}