/*
 * Optimark Pro - Super Prompt Styles
 * Estilos para las funcionalidades del Super Prompt
 */

/* Estilos para el chatbot de IA */
.optimark-ai-chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-header {
    background: #007cba;
    color: white;
    padding: 15px;
    font-weight: bold;
    text-align: center;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
}

.user-message {
    background: #007cba;
    color: white;
    margin-left: auto;
    text-align: right;
}

.ai-message {
    background: #e9ecef;
    color: #333;
    margin-right: auto;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 18px;
    margin-right: 10px;
}

.chatbot-input button {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 18px;
    padding: 10px 15px;
    cursor: pointer;
}

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

/* Estilos para el panel de Super Prompt */
.optimark-super-prompt-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.status-indicator.active {
    background: #d4edda;
    color: #155724;
}

.status-indicator.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Estilos para el metabox de contenido con IA */
.optimark-ai-content-controls textarea {
    width: 100%;
    margin-bottom: 10px;
}

#content-generation-status {
    background: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .optimark-ai-chatbot {
        width: 300px;
        height: 400px;
        bottom: 10px;
        right: 10px;
    }
    
    .optimark-super-prompt-dashboard {
        grid-template-columns: 1fr;
    }
}