/**
 * Estilos para el Plugin Blacklist de Correos
 * Version: 1.2
 */

/* Modal para errores de lista negra */
.blacklist-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.blacklist-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.blacklist-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.blacklist-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #dc3232;
}

.blacklist-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.blacklist-modal-close:hover {
    color: #000;
}

.blacklist-modal-body {
    margin-bottom: 20px;
    line-height: 1.5;
}

.blacklist-modal-footer {
    text-align: right;
}

.blacklist-modal-btn {
    padding: 8px 16px;
    margin-left: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.blacklist-modal-btn-primary {
    background-color: #0073aa;
    color: white;
}

.blacklist-modal-btn-primary:hover {
    background-color: #005a87;
}

.blacklist-modal-btn-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.blacklist-modal-btn-secondary:hover {
    background-color: #e1e1e1;
}

/* Mensajes de error en formularios */
.blacklist-error {
    margin: 5px 0;
    padding: 8px 12px;
    border-left: 4px solid #dc3232;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.blacklist-error p {
    margin: 0;
    color: #dc3232;
}

/* Estilos para la página de administración */
.blacklist-admin-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.blacklist-admin-card h2 {
    margin-top: 0;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.blacklist-stats {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 20px;
}

.blacklist-stats strong {
    color: #0073aa;
}

/* Cuadro de búsqueda */
.blacklist-search-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.blacklist-search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.blacklist-search-input {
    flex: 1;
    min-width: 250px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.blacklist-search-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.blacklist-search-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.blacklist-search-btn:hover {
    background: #005a87;
}

.blacklist-clear-search {
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.blacklist-clear-search:hover {
    background: #e1e1e1;
    text-decoration: none;
}

/* Resultados de búsqueda */
.blacklist-search-results {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: none;
}

.blacklist-search-results.show {
    display: block;
}

.blacklist-no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

/* Filtros adicionales */
.blacklist-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.blacklist-filter-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blacklist-filter-label {
    font-weight: 500;
    color: #333;
}

.blacklist-filter-select {
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

/* Botones personalizados */
.blacklist-btn-remove {
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.blacklist-btn-remove:hover {
    background: #c92626;
}

.blacklist-btn-clear {
    background: #f56e28;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.blacklist-btn-clear:hover {
    background: #e55a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .blacklist-modal-content {
        width: 90%;
        margin: 10% auto;
    }
    
    .blacklist-modal-btn {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
    
    .blacklist-modal-footer {
        text-align: center;
    }
    
    .blacklist-search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .blacklist-search-input {
        min-width: auto;
    }
    
    .blacklist-filters {
        flex-direction: column;
        align-items: stretch;
    }
}
