/* Opções de títulos melhorados */
/*
OPÇÃO 1: "🤖 IA Ibratin em Ação - Veja Como Funciona na Prática"
OPÇÃO 2: "🚀 Central de Atendimento IA - Demonstração Interativa" 
OPÇÃO 3: "💬 WhatsApp Inteligente - Conversas Reais da Ibratin"
OPÇÃO 4: "🎯 Atendimento IA Especializado - Cases de Sucesso"
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    min-height: 100vh;
    color: #ffffff;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF6D00, #E65100);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.subtitle {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Layout Principal */
.main-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Simulador WhatsApp Realista */
.whatsapp-simulator {
    width: 420px;
    background: #111827;
    border-radius: 25px;
    box-shadow: 
        0 20px 60px rgba(255, 109, 0, 0.2),
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 2px solid #FF6D00;
}

/* Header do Chat Realista */
.chat-header {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #374151;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6D00, #E65100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 109, 0, 0.3);
}

.chat-title h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.status {
    color: #9CA3AF;
    font-size: 0.85rem;
    font-weight: 400;
}

.chat-actions {
    display: flex;
    gap: 12px;
}

.btn-action {
    background: rgba(255, 109, 0, 0.2);
    border: none;
    color: #FF6D00;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(255, 109, 0, 0.3);
    transform: scale(1.05);
}

/* Área de Mensagens Realista */
.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #000000;
    position: relative;
}

/* Mensagens com Design Realista WhatsApp */
.message {
    margin-bottom: 15px;
    display: flex;
    animation: messageSlide 0.3s ease-out;
}

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

.message.client-message {
    justify-content: flex-end;
}

.message.bot-message,
.message.human-message {
    justify-content: flex-start;
}

.message.system-message {
    justify-content: center;
}

.message-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

/* Mensagem do Cliente (Verde WhatsApp) */
.client-message .message-bubble {
    background: #25D366;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Mensagem da IA (Cinza Escuro) */
.bot-message .message-bubble {
    background: #1f2937;
    color: #ffffff;
    border-bottom-left-radius: 4px;
    border: 1px solid #374151;
}

/* Mensagem Humana (Azul) */
.human-message .message-bubble {
    background: #1e40af;
    color: #ffffff;
    border-bottom-left-radius: 4px;
}

/* Mensagem Sistema (Laranja) */
.system-message .message-bubble {
    background: linear-gradient(135deg, #FF6D00, #E65100);
    color: #ffffff;
    text-align: center;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.9rem;
    max-width: 90%;
}

.sender-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
    font-weight: 600;
}

.message-text {
    line-height: 1.4;
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 6px;
    text-align: right;
}

/* Controles */
.controls {
    background: #1f2937;
    padding: 20px;
    border-top: 1px solid #374151;
}

.conversation-selector {
    margin-bottom: 15px;
}

.conversation-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FF6D00;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.conversation-selector select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #FF6D00;
    border-radius: 10px;
    background: #000000;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
}

.conversation-selector select:focus {
    outline: none;
    border-color: #E65100;
    box-shadow: 0 0 0 3px rgba(255, 109, 0, 0.2);
}

.control-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6D00, #E65100);
    color: #ffffff;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 109, 0, 0.4);
}

.btn-secondary {
    background: #374151;
    color: #ffffff;
    flex: 1;
}

.btn-secondary:hover {
    background: #4B5563;
    transform: translateY(-2px);
}

#downloadChat {
    background: linear-gradient(135deg, #25D366, #20B358);
    color: #ffffff;
    display: none;
    flex: 1;
}

#downloadChat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 2rem 2rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-item {
    background: rgba(255, 109, 0, 0.1);
    border: 1px solid rgba(255, 109, 0, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
}

.contact-item strong {
    display: block;
    margin-bottom: 5px;
    color: #FF6D00;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 109, 0, 0.1);
    text-decoration: none;
}

.social-links a:hover {
    color: #FF6D00;
    background: rgba(255, 109, 0, 0.2);
    transform: translateY(-2px);
}

/* Scrollbar Personalizada */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6D00, #E65100);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #E65100, #BF360C);
}

/* Indicador de Digitação */
.typing-indicator {
    display: flex;
    justify-content: flex-start;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #1f2937;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    border: 1px solid #374151;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #9CA3AF;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .whatsapp-simulator {
        width: 100%;
        max-width: 400px;
    }
    
    .header {
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .chat-messages {
        height: 400px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
    }
    
    .chat-header {
        padding: 15px;
    }
    
    .chat-messages {
        height: 350px;
        padding: 15px;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 10px 14px;
    }
    
    .controls {
        padding: 15px;
    }
    
    .control-buttons {
        flex-direction: column;
    }
}