/* Botão flutuante do WhatsApp */
#mwcrm-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#mwcrm-open-form {
    background: #25D366; /* verde WhatsApp */
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

#mwcrm-open-form svg,
#mwcrm-open-form img {
    position: relative;
    z-index: 3;
    width: 30px;
    height: 30px;
    fill: #fff;
    object-fit: contain;
}

#mwcrm-open-form:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

#mwcrm-open-form:active {
    transform: scale(0.95);
}

/* Animação de pulso */
#mwcrm-open-form::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: #25D366;
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Caixa do formulário */
#mwcrm-form {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: none;
    z-index: 10000;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header do formulário */
.mwcrm-form-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mwcrm-form-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

#mwcrm-close-form {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#mwcrm-close-form:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Formulário */
#mwcrm-lead-form {
    padding: 20px;
}

.mwcrm-input-group {
    margin-bottom: 15px;
}

#mwcrm-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#mwcrm-form input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

#mwcrm-form input:invalid {
    border-color: #e74c3c;
}

.mwcrm-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    min-height: 16px;
}

#mwcrm-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#mwcrm-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

#mwcrm-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mwcrm-success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #c3e6cb;
}

.mwcrm-error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #f5c6cb;
}

/* Footer do formulário */
.mwcrm-form-footer {
    background: #f8f9fa;
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.mwcrm-form-footer small {
    color: #6c757d;
    font-size: 12px;
}

/* Responsividade */
@media (max-width: 480px) {
    #mwcrm-widget {
        bottom: 15px;
        right: 15px;
    }
    
    #mwcrm-form {
        bottom: 80px;
        right: 15px;
        width: calc(100vw - 30px);
        max-width: none;
    }
    
    #mwcrm-open-form {
        width: 55px;
        height: 55px;
    }
}

/* Estilos para o Kanban */
.kanban-column {
    border: 1px solid #ccc;
    padding: 10px;
    width: 30%;
    min-height: 200px;
    border-radius: 5px;
    background: #f8f9fa;
}

.kanban-card {
    background: #fff;
    margin: 5px 0;
    padding: 10px;
    cursor: move;
    border-radius: 5px;
    border: 1px solid #ddd;
    transition: box-shadow 0.2s;
}

.kanban-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
