/* Modern AI Demo Styling */

.ai-thinking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #00ff88;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 200, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.thinking-dots {
    display: flex;
    gap: 0.5rem;
}

.thinking-dots span {
    width: 12px;
    height: 12px;
    background: linear-gradient(45deg, #00ff88, #00ffc8);
    border-radius: 50%;
    animation: thinking 1.4s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinking {
    0%, 80%, 100% { 
        transform: scale(0.8); 
        opacity: 0.5; 
        box-shadow: 0 2px 8px rgba(0, 255, 136, 0.2);
    }
    40% { 
        transform: scale(1.3); 
        opacity: 1; 
        box-shadow: 0 4px 15px rgba(0, 255, 136, 0.5);
    }
}

.ai-response {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(0, 255, 136, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.ai-response::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff88, #00ffc8, #00ff88);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ai-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff88, #00ffc8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.ai-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00ffc8, #00ff88);
    border-radius: 50%;
    z-index: -1;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.response-text {
    flex: 1;
    position: relative;
    z-index: 1;
}

.response-text p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.response-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 0;
}

.action-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 255, 200, 0.15));
    color: #00ff88;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
    border-color: rgba(0, 255, 136, 0.5);
}

.action-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.action-btn:hover i {
    transform: scale(1.3) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 255, 136, 0.4));
}

.whatsapp-action {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.08)) !important;
    border: 2px solid rgba(37, 211, 102, 0.3) !important;
    color: #25d366 !important;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.2) !important;
}

.whatsapp-action:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(37, 211, 102, 0.2)) !important;
    color: #ffffff !important;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4) !important;
    border-color: rgba(37, 211, 102, 0.6) !important;
}

.action-btn:active {
    transform: translateY(-2px) scale(1.01);
    transition: all 0.1s ease;
}

/* Special button variants */
.action-btn:nth-child(1) {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 123, 255, 0.08));
    border-color: rgba(0, 123, 255, 0.3);
    color: #007bff;
}

.action-btn:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 123, 255, 0.2));
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.6);
}

.action-btn:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 193, 7, 0.08));
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.action-btn:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 193, 7, 0.2));
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.3);
    border-color: rgba(255, 193, 7, 0.6);
}

.action-btn:nth-child(3) {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.08));
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.action-btn:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.3), rgba(37, 211, 102, 0.2));
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.3);
    border-color: rgba(37, 211, 102, 0.6);
}

.action-btn:nth-child(4) {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.08));
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.action-btn:nth-child(4):hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(220, 53, 69, 0.2));
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.6);
}

.message {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-weight: 500;
}

.message.info {
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    color: #007bff;
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

/* Responsive design */
@media (max-width: 768px) {
    .response-actions {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .action-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .ai-response {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .ai-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}
