/* ===================================================
   IGREEN TELECOM - CSS PARA CHAT BOT E PROVA SOCIAL v2.0
   Estilos para Chat Bot Qualificador e Prova Social Dinâmica
   =================================================== */

/* ===== CHAT BOT QUALIFICADOR ===== */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 999;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (max-width: 768px) {
    .chatbot-container {
        bottom: 90px;
        left: 20px;
        right: auto;
    }
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #FF9800;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@media (max-width: 768px) {
    .chatbot-window {
        position: fixed;
        bottom: auto;
        left: 50%;
        right: auto;
        top: 120px;
        transform: translateX(-50%);
        width: calc(100vw - 30px);
        max-width: 360px;
        height: 400px;
        z-index: 1000;
        box-sizing: border-box;
    }
}

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

.chatbot-header {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
    color: white;
    padding: 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.chatbot-close:hover {
    transform: scale(1.2);
}

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

.chatbot-message {
    display: flex;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease;
}

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

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

.bot-message p {
    background: #E8F5E9;
    color: #1B5E20;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
}

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

.user-message p {
    background: #2E7D32;
    color: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    max-width: 85%;
}

.chatbot-input {
    padding: 12px;
    border-top: 1px solid #EEEEEE;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chatbot-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid #2E7D32;
    color: #2E7D32;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.chatbot-btn:hover {
    background: #E8F5E9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.chatbot-btn.whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

.chatbot-btn.whatsapp:hover {
    background: #1DA851;
    border-color: #1DA851;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.chatbot-btn.secondary {
    background: #F5F5F5;
    border-color: #CCCCCC;
    color: #424242;
}

.chatbot-btn.secondary:hover {
    background: #EEEEEE;
}

/* Responsividade para mobile */
@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 60vh;
        max-height: 500px;
        right: 20px;
        left: 20px;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }
}

/* ===== PROVA SOCIAL DINÂMICA ===== */
.social-proof-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.notification-popup {
    background: white;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-left: 4px solid #4CAF50;
    display: flex;
    gap: 12px;
    opacity: 0;
    transform: translateX(-400px);
    transition: all 0.3s ease;
}

.notification-popup.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #E8F5E9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 20px;
}

.notification-content {
    display: flex;
    gap: 12px;
    flex: 1;
}

.notification-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-name {
    font-weight: 600;
    color: #212121;
    font-size: 14px;
    margin: 0;
}

.notification-action {
    font-size: 12px;
    color: #757575;
    margin: 0;
}

.notification-plan {
    font-size: 12px;
    color: #2E7D32;
    font-weight: 500;
    margin: 0;
}

.notification-time {
    font-size: 11px;
    color: #BDBDBD;
    margin: 0;
}

/* ===== CONTADOR ONLINE ===== */
.online-counter {
    background: white;
    border-radius: 24px;
    padding: 8px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #424242;
    width: fit-content;
}

.online-counter i {
    animation: pulse 2s infinite;
}

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

/* Responsividade para mobile */
@media (max-width: 480px) {
    .social-proof-container {
        left: 10px;
        right: 10px;
        bottom: 90px;
    }

    .notification-popup {
        max-width: 100%;
    }

    .notification-area {
        max-width: 100%;
    }

    .online-counter {
        font-size: 12px;
        padding: 6px 12px;
    }
}

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

.chatbot-messages::-webkit-scrollbar-track {
    background: #F5F5F5;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #4CAF50;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #2E7D32;
}
