/* Interactive Interim Messaging CSS */

/* Progress bars */
.progress-container {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 12px;
    color: #007bff;
    font-weight: 600;
}

.time-left {
    font-size: 11px;
    color: #6c757d;
    margin-top: 3px;
}

/* Step indicators */
.step-indicator {
    position: relative;
}

.step-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Legal facts */
.legal-fact {
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #856404;
    position: relative;
}

.legal-fact i {
    margin-right: 6px;
    color: #ffc107;
}

.dismiss-btn {
    position: absolute;
    top: 2px;
    right: 8px;
    background: none;
    border: none;
    font-size: 16px;
    color: #856404;
    cursor: pointer;
    opacity: 0.7;
}

.dismiss-btn:hover {
    opacity: 1;
}

/* Success animation */
.success-animation {
    display: inline-block;
    margin-left: 10px;
}

.success-animation i {
    color: #28a745;
    font-size: 18px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.success-animation.animate i {
    opacity: 1;
    transform: scale(1);
}

/* Error animation */
.error-animation {
    display: inline-block;
    margin-left: 10px;
}

.error-animation i {
    color: #dc3545;
    font-size: 18px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s ease;
}

.error-animation.animate i {
    opacity: 1;
    transform: scale(1);
}

/* Interactive elements container */
.interactive-elements {
    margin-top: 10px;
}

.message-container {
    width: 100%;
}

/* Enhanced chat bubbles for different types */
.chat-bubble.interim {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #007bff;
    animation: pulseGlow 2s ease-in-out infinite;
}

.chat-bubble.progress {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid #2196f3;
}

.chat-bubble.engagement {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-left: 4px solid #ff9800;
}

.chat-bubble.completion {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-left: 4px solid #4caf50;
    animation: successPulse 1s ease-in-out;
}

/* Animations */
@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    }
}

@keyframes successPulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    }
}

/* Dark mode support */
.dark-mode .progress-container {
    background: rgba(0, 123, 255, 0.2);
}

.dark-mode .legal-fact {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.dark-mode .chat-bubble.interim {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.dark-mode .chat-bubble.progress {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.dark-mode .chat-bubble.engagement {
    background: linear-gradient(135deg, #92400e, #f59e0b);
}

.dark-mode .chat-bubble.completion {
    background: linear-gradient(135deg, #065f46, #10b981);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .progress-container {
        margin-top: 8px;
        padding: 8px;
    }
    
    .legal-fact {
        margin-top: 6px;
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .step-badge {
        width: 14px;
        height: 14px;
        font-size: 9px;
    }
}
