/* FOOTER STYLES - ARC ERP */
:root {
    --primary-green: #00e78c;
    --primary-blue: #082b66;
    --secondary-blue: #1a3f7a;
    --text-dark: #10264a;
    --text-light: #4a6b96;
    --bg-light: #f8fcff;
    --border-light: #e6f0ff;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), #0a3d8a);
    --gradient-green: linear-gradient(135deg, var(--primary-green), #00c97a);
}

/* Remove o botão do WhatsApp existente */
.whatsapp-float {
    display: none;
}

/* ===========================
   FOOTER PRINCIPAL
   =========================== */
.footer.ecommerce-style {
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
    color: var(--primary-blue);
    padding-top: 60px;
    position: relative;
    border-top: 1px solid rgba(8, 43, 102, 0.1);
}

.footer.ecommerce-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
}

.footer-content {
    position: relative;
    z-index: 2;
    padding-bottom: 40px;
}

/* ===========================
   FOOTER TÍTULOS
   =========================== */
.footer-title {
    color: var(--primary-blue);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.footer-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-green);
    border-radius: 3px;
}

/* ===========================
   FOOTER LINKS
   =========================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--primary-green);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

/* ===========================
   CONTACT INFO
   =========================== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info i {
    color: var(--primary-green);
    font-size: 1.1rem;
    margin-top: 3px;
    min-width: 20px;
    text-align: center;
}

/* ===========================
   SOCIAL MEDIA
   =========================== */
.social-media {
    margin-top: 24px;
}

.social-title {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(8, 43, 102, 0.05);
    color: var(--primary-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid rgba(8, 43, 102, 0.1);
}

.social-icons a:hover {
    background: var(--primary-green);
    color: #062d2a;
    transform: translateY(-5px) scale(1.1);
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 231, 140, 0.3);
}

/* ===========================
   NEWSLETTER
   =========================== */
.newsletter-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(8, 43, 102, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    background: white;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 231, 140, 0.1);
}

.newsletter-form input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

.newsletter-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-green);
    color: #062d2a;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 231, 140, 0.2);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 231, 140, 0.3);
}

/* ===========================
   PAYMENT METHODS
   =========================== */
.payment-methods {
    margin-top: 24px;
}

.payment-title {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.payment-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: white;
    padding: 8px;
    border: 1px solid rgba(8, 43, 102, 0.05);
    filter: brightness(1);
    transition: filter 0.3s ease;
}

.payment-image:hover {
    filter: brightness(1.05);
}

/* ===========================
   COPYRIGHT AREA
   =========================== */
.copyright-area {
    background: white;
    padding: 30px 0;
    border-top: 1px solid rgba(8, 43, 102, 0.05);
    position: relative;
    z-index: 2;
}

.sticky-copyright {
    position: relative;
    bottom: 0;
    background: white;
    padding: 20px 0;
    z-index: 1;
    border-top: 1px solid rgba(8, 43, 102, 0.1);
}

.copyright-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 15px 0 10px;
    line-height: 1.6;
}

.copyright-text a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.copyright-details {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.cnpj {
    color: var(--primary-blue);
    font-weight: 600;
}

.disclaimer-text {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 90%;
}

/* ===========================
   SECURITY SEALS
   =========================== */
.security-seals {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.seals-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.seal-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.seal-item:hover {
    transform: translateY(-5px);
}

.seal-image {
    max-height: 60px;
    width: auto;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(8, 43, 102, 0.1));
}

.google-review {
    height: 60px;
    width: auto;
}

.ssl-seal {
    background: linear-gradient(135deg, var(--primary-blue), #0a3d8a);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--primary-green);
}

.ssl-seal i {
    color: var(--primary-green);
    font-size: 1rem;
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-green);
    border: none;
    border-radius: 50%;
    color: #062d2a;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 231, 140, 0.3);
    transition: all 0.3s ease;
    z-index: 100;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 28px rgba(0, 231, 140, 0.4);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

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

/* ===========================
   ANIMAÇÕES
   =========================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -8px, 0);
    }
    70% {
        transform: translate3d(0, -4px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* ===========================
   NOTIFICATION BADGE
   =========================== */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
}

/* ===========================
   TYPING INDICATOR
   =========================== */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: white;
    border-radius: 18px;
    border: 1px solid rgba(8, 43, 102, 0.1);
    width: fit-content;
    margin-bottom: 10px;
}

.typing-indicator span {
    font-size: 11px;
    color: var(--text-light);
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots div {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-green);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===========================
   CHAT WIDGET STYLES
   =========================== */
.chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.chat-widget-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #062d2a;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 231, 140, 0.3);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid white;
}

.chat-widget-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 231, 140, 0.4);
}

/* Modal de Escolha */
.chat-modal {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(8, 43, 102, 0.2);
    display: none;
    animation: slideUp 0.3s ease;
    z-index: 10001;
    border: 1px solid rgba(8, 43, 102, 0.1);
}

.chat-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(8, 43, 102, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--gradient-primary);
    border-radius: 15px 15px 0 0;
}

.chat-modal-header h6 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-options {
    padding: 15px;
}

.chat-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 2px solid rgba(8, 43, 102, 0.1);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-option:hover {
    border-color: var(--primary-green);
    background: rgba(0, 231, 140, 0.05);
    transform: translateY(-2px);
}

.chat-option:last-child {
    margin-bottom: 0;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.option-icon.whatsapp {
    background: #25d366;
}

.option-info {
    flex: 1;
}

.option-info h6 {
    margin: 0 0 4px 0;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
}

.option-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 12px;
}

.status-online {
    color: #28a745;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-online i {
    font-size: 8px;
}

.chat-modal-footer {
    padding: 10px 15px;
    border-top: 1px solid rgba(8, 43, 102, 0.1);
    text-align: center;
    background: var(--bg-light);
    border-radius: 0 0 15px 15px;
}

.chat-modal-footer small {
    color: var(--text-light);
    font-size: 11px;
}

/* Janela do Chat */
.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(8, 43, 102, 0.2);
    display: none;
    flex-direction: column;
    animation: slideUp 0.3s ease;
    z-index: 10001;
    border: 1px solid rgba(8, 43, 102, 0.1);
}

.chat-window-header {
    padding: 15px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-info i {
    font-size: 18px;
}

.header-info span {
    font-weight: 600;
    font-size: 14px;
}

.agent-status {
    font-size: 11px;
    opacity: 0.8;
    font-style: italic;
}

.header-actions {
    display: flex;
    gap: 5px;
}

.btn-minimize,
.btn-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease;
}

.btn-minimize:hover,
.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-window-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg-light);
}

.chat-window-footer {
    padding: 15px;
    border-top: 1px solid rgba(8, 43, 102, 0.1);
    background: white;
    border-radius: 0 0 15px 15px;
}

.chat-input-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-widget-input {
    flex: 1;
    border: 1px solid rgba(8, 43, 102, 0.1);
    border-radius: 25px;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

#chat-widget-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(0, 231, 140, 0.1);
}

#chat-widget-input:disabled {
    background-color: var(--bg-light);
    cursor: not-allowed;
}

#chat-widget-send {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-green);
    color: #062d2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

#chat-widget-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 231, 140, 0.3);
}

#chat-widget-send:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Mensagens */
.message {
    margin-bottom: 15px;
    display: flex;
}

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

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

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.user-message .message-content {
    background: var(--gradient-green);
    color: #062d2a;
    border-bottom-right-radius: 4px;
}

.admin-message .message-content {
    background: white;
    color: var(--text-dark);
    border: 1px solid rgba(8, 43, 102, 0.1);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 5px rgba(8, 43, 102, 0.05);
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
}

.user-message .message-time {
    text-align: right;
    color: #062d2a;
}

.welcome-message {
    text-align: center;
    padding: 20px 0;
}

.system-message {
    background: rgba(0, 231, 140, 0.1);
    border: 1px solid rgba(0, 231, 140, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: var(--primary-blue);
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

.system-message i {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
    color: var(--primary-green);
}

.system-message p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* ===========================
   RESPONSIVO - MOBILE (até 1200px)
   =========================== */
@media (max-width: 1200px) {
    /* Footer Mobile */
    .footer.ecommerce-style {
        padding-top: 40px;
    }

    .footer-content {
        padding-bottom: 20px;
    }

    .footer .row {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .footer .col-lg-3,
    .footer .col-md-6,
    .footer .col-12 {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 30px;
    }

    .footer-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .footer-links a {
        font-size: 1.5rem;
        padding: 10px 0;
    }

    .contact-info p {
        font-size: 1.5rem;
        gap: 15px;
    }

    .contact-info i {
        font-size: 1.8rem;
        width: 30px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons a {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .newsletter-text {
        font-size: 1.5rem;
    }

    .newsletter-form input {
        padding: 20px;
        font-size: 1.5rem;
        border-radius: 15px;
    }

    .newsletter-btn {
        padding: 20px;
        font-size: 1.6rem;
        min-height: 70px;
        border-radius: 15px;
    }

    .payment-title {
        font-size: 1.6rem;
    }

    .payment-image {
        width: 100%;
    }

    /* Copyright Mobile */
    .copyright-area {
        padding: 30px 0;
    }

    .sticky-copyright {
        position: static;
        padding: 20px 0;
        box-shadow: none;
    }

    .copyright-text,
    .security-seals {
        text-align: center;
        width: 100%;
    }

    .copyright-text {
        font-size: 1.4rem;
    }

    .security-seals {
        justify-content: center;
        margin-top: 20px;
        gap: 15px;
    }

    .seals-wrapper {
        justify-content: center;
    }

    .seal-image {
        height: 50px;
    }

    .ssl-seal {
        padding: 10px 20px;
        font-size: 1.2rem;
    }

    /* Chat Widget Mobile */
    .chat-widget-container {
        bottom: 30px;
        right: 20px;
    }

    .chat-widget-btn {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .chat-modal {
        width: 90vw;
        max-width: 450px;
        bottom: 100px;
    }

    .chat-window {
        width: 90vw;
        max-width: 900px;
        height: 70vh;
        min-height: 550px;
        bottom: 100px;
    }

    .chat-modal-header h6,
    .option-info h6 {
        font-size: 1.8rem;
    }

    .option-info p,
    .status-online,
    .chat-modal-footer small,
    .header-info span,
    .agent-status {
        font-size: 1.4rem;
    }

    #chat-widget-input {
        font-size: 1.6rem;
        padding: 15px 20px;
    }

    #chat-widget-send {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .btn-minimize,
    .btn-close {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .message-content {
        font-size: 1.6rem;
        padding: 15px 20px;
    }

    .message-time {
        font-size: 1.2rem;
    }

    .system-message p {
        font-size: 1.5rem;
    }

    .typing-indicator span {
        font-size: 1.4rem;
    }

    .typing-dots div {
        width: 8px;
        height: 8px;
    }
}

/* ===========================
   MOBILE PEQUENO (max-width: 768px)
   =========================== */
@media (max-width: 768px) {
    .footer-title {
        font-size: 1.6rem;
    }

    .footer-links a {
        font-size: 1.4rem;
    }

    .contact-info p {
        font-size: 1.4rem;
    }

    .newsletter-text {
        font-size: 1.4rem;
    }

    .copyright-text {
        font-size: 1.2rem;
    }

    .ssl-seal {
        font-size: 1rem;
        padding: 8px 16px;
    }

    .chat-widget-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .chat-modal-header h6,
    .option-info h6 {
        font-size: 1.6rem;
    }

    .option-info p,
    .status-online {
        font-size: 1.2rem;
    }
}

/* ===========================
   MOBILE MUITO PEQUENO (max-width: 576px)
   =========================== */
@media (max-width: 576px) {
    .footer-title {
        font-size: 1.4rem;
    }

    .footer-links a {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 1.2rem;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .copyright-area {
        padding: 20px 0;
    }

    .chat-widget-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 20px;
        right: 15px;
    }

    .seals-wrapper {
        gap: 10px;
    }

    .seal-image {
        height: 40px;
    }

    .ssl-seal {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

/* ===========================
   DESKTOP (min-width: 1201px) - RESET
   =========================== */
@media (min-width: 1201px) {
    .sticky-copyright {
        position: relative;
    }

    .copyright-area {
        padding: 30px 0;
    }

    body {
        margin-bottom: 0;
    }

    .footer .row {
        display: flex;
        flex-direction: row;
    }
}