/* VMO Business Wizard Professional Formatting Styles */

/* AI Response Professional Formatting */
.vmo-ai-response-formatted {
    line-height: 1.6;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vmo-ai-response-formatted p {
    margin: 0 0 12px 0;
    text-align: left;
}

.vmo-paragraph-break {
    height: 8px;
}

.vmo-ai-response-formatted ul {
    margin: 8px 0 12px 20px;
    padding: 0;
    list-style: none;
}

.vmo-ai-response-formatted li {
    margin: 4px 0;
    padding-left: 20px;
    position: relative;
}

.vmo-ai-response-formatted li:before {
    content: "•";
    color: #0056b3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.vmo-ai-response-formatted li.numbered:before {
    content: counter(list-counter) ".";
    counter-increment: list-counter;
    color: #0056b3;
    font-weight: bold;
}

.vmo-bold {
    font-weight: 600;
    color: #2c5530;
}

.vmo-italic {
    font-style: italic;
    color: #555;
}

.vmo-question {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #0056b3;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    color: #2c5530;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Message Container Improvements */
.vmo-ai-message {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.vmo-ai-message:before {
    content: "🤖";
    position: absolute;
    top: -8px;
    left: 16px;
    background: white;
    padding: 0 8px;
    font-size: 16px;
}

.vmo-user-message {
    background: linear-gradient(135deg, #0056b3, #0041a3);
    color: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 12px 0;
    text-align: right;
    box-shadow: 0 2px 8px rgba(0,86,179,0.2);
    position: relative;
}

.vmo-user-message:before {
    content: "👤";
    position: absolute;
    top: -8px;
    right: 16px;
    background: white;
    padding: 0 8px;
    font-size: 16px;
}

/* Professional Recommendations Section */
.vmo-recommendations-container {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #28a745;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.vmo-recommendations-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #28a745;
}

.vmo-recommendations-header h3 {
    color: #28a745;
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.vmo-recommendations-header p {
    color: #6c757d;
    margin: 0;
    font-style: italic;
}

.vmo-recommendation-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    transition: all 0.3s ease;
    position: relative;
}

.vmo-recommendation-item:hover {
    border-color: #28a745;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.1);
    transform: translateY(-2px);
}

.vmo-recommendation-checkbox {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.vmo-recommendation-title {
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
    margin: 0 40px 12px 0;
    display: flex;
    align-items: center;
}

.vmo-recommendation-title:before {
    content: "✨";
    margin-right: 8px;
}

.vmo-recommendation-description {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
}

.vmo-recommendation-benefits {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 12px;
}

.vmo-recommendation-benefits h5 {
    color: #28a745;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.vmo-recommendation-benefits ul {
    margin: 0;
    padding-left: 16px;
}

.vmo-recommendation-benefits li {
    color: #6c757d;
    font-size: 13px;
    margin: 4px 0;
}

/* Approve Button Styling */
.vmo-approve-recommendations-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.vmo-approve-recommendations-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.vmo-approve-recommendations-btn:active {
    transform: translateY(0);
}

/* Progress Bar for Generation */
.vmo-generation-progress {
    background: white;
    border: 2px solid #0056b3;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.15);
}

.vmo-progress-bar-container {
    background: #e9ecef;
    border-radius: 50px;
    height: 12px;
    margin: 16px 0;
    overflow: hidden;
    position: relative;
}

.vmo-progress-bar {
    background: linear-gradient(90deg, #0056b3, #0041a3);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 50px;
    position: relative;
}

.vmo-progress-bar:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.vmo-progress-text {
    font-weight: 600;
    color: #0056b3;
    margin: 8px 0;
}

/* Enhanced Message Time Stamps */
.vmo-message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 8px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vmo-agents-status {
        grid-template-columns: 1fr;
    }
    
    .vmo-deliverables-grid {
        grid-template-columns: 1fr;
    }
    
    .vmo-generation-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .vmo-wizard-btn-approve,
    .vmo-wizard-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .vmo-consultation-steps {
        grid-template-columns: 1fr;
    }
}

/* Consultation Progress Tracking */
.vmo-consultation-progress {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.vmo-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vmo-progress-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
    font-weight: 600;
}

.vmo-progress-text {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

.vmo-progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.vmo-progress-percentage {
    font-weight: 600;
    color: #2c3e50;
    min-width: 40px;
    text-align: right;
}

/* Consultation Steps */
.vmo-consultation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.vmo-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.vmo-step.active {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #2980b9;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.vmo-step.completed {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    border-color: #27ae60;
}

.vmo-step-icon {
    font-size: 1.1em;
    min-width: 20px;
}

.vmo-step span {
    font-size: 0.85em;
    font-weight: 500;
}

/* Barge-in and Voice Enhancements */
.vmo-voice-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.vmo-voice-status.listening {
    background: rgba(231, 76, 60, 0.9);
    animation: pulse-listening 1.5s infinite;
}

.vmo-voice-status.speaking {
    background: rgba(46, 204, 113, 0.9);
    animation: pulse-speaking 2s infinite;
}

@keyframes pulse-listening {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-speaking {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* System Messages */
.vmo-message.system {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    color: #495057;
    font-style: italic;
    opacity: 0.8;
}

/* Context Update Styling */
.vmo-context-update {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.vmo-context-update h4 {
    color: #856404;
    margin-bottom: 15px;
}

.vmo-context-update ul {
    color: #856404;
    margin: 15px 0;
    padding-left: 20px;
}

.vmo-context-update p {
    color: #856404;
    margin: 10px 0;
}