/*
 * Optimark Pro Plugin Styles
 * All styles for the Optimark Pro plugin modules
 */

/* General plugin styles */
.optimark-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.optimark-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.optimark-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.optimark-button {
    background: #007cba;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 15px;
    transition: background 0.3s ease;
}

.optimark-button:hover {
    background: #005a87;
}

.optimark-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.optimark-progress-bar {
    background: #f0f0f0;
    border-radius: 4px;
    height: 20px;
    margin: 10px 0;
    overflow: hidden;
    position: relative;
}

.optimark-progress {
    background: #4CAF50;
    height: 100%;
    transition: width 0.4s ease;
    width: 0%;
}

.optimark-feedback {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    display: none;
}

.optimark-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.optimark-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.optimark-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.optimark-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Module-specific styles */
.optimark-seo-score {
    display: flex;
    align-items: center;
}

.optimark-seo-score-meter {
    width: 100px;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
}

.optimark-seo-score-value {
    height: 100%;
    background: #4CAF50;
}

.optimark-analytics-chart {
    min-height: 300px;
    width: 100%;
}

/* Responsive design */
@media (max-width: 768px) {
    .optimark-container {
        padding: 10px;
    }
    
    .optimark-section {
        padding: 15px;
    }
}


/* Botón de chat Meisca con animación de saludo */
#ai-chat-toggle {
    display: none !important;
}

#chatbot-toggle,
.chatbot-toggle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 55px !important;
    height: 55px !important;
    padding: 0 !important;
}

.meisca-chat-icon,
#chatbot-toggle img,
.chatbot-toggle img {
    width: 55px !important;
    height: 55px !important;
    animation: wave-hand 2s ease-in-out infinite !important;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.5)) !important;
}

/* Input del chat con texto negro */
#chatbot-user-input,
.chatbot-input input {
    color: #333 !important;
}

@keyframes wave-hand {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    40%, 60% { transform: rotate(0deg); }
}

/* Ocultar botón WhatsApp flotante */
.whatsapp-float,
a.whatsapp-float,
a[href*="wa.me"][class*="float"] {
    display: none !important;
}
