.bhm-admin-wrap {
    background: #f5f7fa;
    margin: 20px 20px 20px 0;
    padding: 0;
}

.bhm-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    margin: 0 0 30px 0;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
}

.bhm-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.bhm-container {
    background: white;
    padding: 30px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header */
.bhm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.bhm-filters {
    display: flex;
    gap: 10px;
}

.bhm-select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

/* Estadísticas */
.bhm-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bhm-stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 40px;
}

.stat-info h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 5px 0;
}

.stat-info p {
    font-size: 28px;
    font-weight: bold;
    color: #1e3c72;
    margin: 0;
}

/* Tabla */
.bhm-table-container {
    overflow-x: auto;
}

.bhm-table {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.bhm-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1e3c72;
}

.bhm-table tbody tr:hover {
    background: #f8f9ff;
}

.loading-cell {
    text-align: center;
    padding: 60px 20px !important;
}

.bhm-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badges */
.bhm-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.bhm-badge.activo {
    background: #d4edda;
    color: #155724;
}

.bhm-badge.inactivo {
    background: #f8d7da;
    color: #721c24;
}

/* Botones de acción */
.bhm-actions {
    display: flex;
    gap: 5px;
}

.bhm-btn-icon {
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 14px;
}

.bhm-btn-edit {
    background: #667eea;
    color: white;
}

.bhm-btn-edit:hover {
    background: #5568d3;
}

.bhm-btn-delete {
    background: #e74c3c;
    color: white;
}

.bhm-btn-delete:hover {
    background: #c0392b;
}

.bhm-btn-toggle {
    background: #f39c12;
    color: white;
}

.bhm-btn-toggle:hover {
    background: #d68910;
}

/* Modal */
.bhm-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    overflow: auto;
}

.bhm-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bhm-modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bhm-modal-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bhm-modal-header h2 {
    margin: 0;
    font-size: 22px;
}

.bhm-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
}

.bhm-modal-close:hover {
    opacity: 0.8;
}

.bhm-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.bhm-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group label .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.image-upload-container {
    display: flex;
    gap: 10px;
}

.image-upload-container input {
    flex: 1;
}

.btn-upload {
    white-space: nowrap;
}

.image-preview {
    margin-top: 10px;
    border: 2px dashed #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
}

.image-preview.empty::after {
    content: 'Vista previa de imagen';
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .bhm-stats {
        grid-template-columns: 1fr;
    }
    
    .bhm-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .bhm-modal-content {
        width: 95%;
        margin: 20px;
    }
}